From b751665aa8f78719eb3e4fe30545fffd5c423948 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Fri, 1 Aug 2008 15:48:51 +0200 Subject: [PATCH] svg module: fix memleak. --- modules/misc/svg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/misc/svg.c b/modules/misc/svg.c index e059ea3f7a..d601cd7ca4 100644 --- a/modules/misc/svg.c +++ b/modules/misc/svg.c @@ -202,6 +202,7 @@ static char *svg_GetTemplate( vlc_object_t *p_this ) if( !psz_template ) { fclose( file ); + free( psz_filename ); return NULL; } memset( psz_template, 0, s.st_size + 1 ); @@ -210,6 +211,7 @@ static char *svg_GetTemplate( vlc_object_t *p_this ) fclose( file ); } } + free( psz_filename ); if( !psz_template ) { /* Either there was no file, or there was an error. -- 2.39.2