From 70bd7e6196f5e2ee974e8125098d23029499b1ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Escudier?= Date: Fri, 3 Apr 2009 09:22:23 +0200 Subject: [PATCH] Do not leak exception message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- src/control/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/control/core.c b/src/control/core.c index 90ae37c60b..0ac8a3c838 100644 --- a/src/control/core.c +++ b/src/control/core.c @@ -89,6 +89,8 @@ void libvlc_exception_raise( libvlc_exception_t *p_exception, /* Print something, so that lazy third-parties can easily * notice that something may have gone unnoticedly wrong */ libvlc_exception_not_handled( psz ); + if( psz != nomemstr ) + free( psz ); return; } -- 2.39.2