[vlc-commits] commit: m3u: fix a memory leak ( the string is not allocated with FromLocale nor ToLocale but strdup). ( Rémi Duraffort )

git at videolan.org git at videolan.org
Mon Jul 26 19:49:15 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Jul 21 22:28:08 2010 +0200| [49cd341267ac0a9b4f52abc82d94ef3ac0e99c10] | committer: Rémi Duraffort 

m3u: fix a memory leak (the string is not allocated with FromLocale nor ToLocale but strdup).
(cherry picked from commit 5e33034d87a3e3258573410053f0bfc1e7925674)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=49cd341267ac0a9b4f52abc82d94ef3ac0e99c10
---

 modules/demux/playlist/m3u.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index 4817d7d..b29e654 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -213,14 +213,14 @@ static int Demux( demux_t *p_demux )
             b_cleanup = true;
             if( !psz_mrl )
             {
-                LocaleFree( psz_parse );
+                free( psz_parse );
                 goto error;
             }
 
             p_input = input_item_NewExt( p_demux, psz_mrl, psz_name,
                                         i_options, ppsz_options, 0, i_duration );
 
-            LocaleFree( psz_parse );
+            free( psz_parse );
             free( psz_mrl );
 
             if ( !EMPTY_STR(psz_artist) )



More information about the vlc-commits mailing list