From 5e33034d87a3e3258573410053f0bfc1e7925674 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Wed, 21 Jul 2010 22:28:08 +0200 Subject: [PATCH] m3u: fix a memory leak (the string is not allocated with FromLocale nor ToLocale but strdup). --- modules/demux/playlist/m3u.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c index aaa8ab0ace..d0e8642240 100644 --- a/modules/demux/playlist/m3u.c +++ b/modules/demux/playlist/m3u.c @@ -222,14 +222,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) ) -- 2.39.2