[vlc-devel] commit: Do not leak exception message ( Sébastien Escudier )

git version control git at videolan.org
Sat Apr 4 11:56:06 CEST 2009


vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Fri Apr  3 09:22:23 2009 +0200| [70bd7e6196f5e2ee974e8125098d23029499b1ec] | committer: Rémi Denis-Courmont 

Do not leak exception message

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70bd7e6196f5e2ee974e8125098d23029499b1ec
---

 src/control/core.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/control/core.c b/src/control/core.c
index 90ae37c..0ac8a3c 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;
     }
 




More information about the vlc-devel mailing list