]> git.sesse.net Git - vlc/commitdiff
Do not leak exception message
authorSébastien Escudier <sebastien-devel@celeos.eu>
Fri, 3 Apr 2009 07:22:23 +0000 (09:22 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 4 Apr 2009 09:42:32 +0000 (12:42 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
src/control/core.c

index 90ae37c60b4ff779cd2f56e69b83419e8ad6cd36..0ac8a3c8382e2bb57bd00f4591db11dac8b413d4 100644 (file)
@@ -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;
     }