]> git.sesse.net Git - vlc/blobdiff - src/control/core.c
Do not leak exception message
[vlc] / 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;
     }