Commit 49cd3412 authored by Rémi Duraffort's avatar 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: default avatarRémi Duraffort <ivoire@videolan.org>
parent 6345184e
...@@ -213,14 +213,14 @@ static int Demux( demux_t *p_demux ) ...@@ -213,14 +213,14 @@ static int Demux( demux_t *p_demux )
b_cleanup = true; b_cleanup = true;
if( !psz_mrl ) if( !psz_mrl )
{ {
LocaleFree( psz_parse ); free( psz_parse );
goto error; goto error;
} }
p_input = input_item_NewExt( p_demux, psz_mrl, psz_name, p_input = input_item_NewExt( p_demux, psz_mrl, psz_name,
i_options, ppsz_options, 0, i_duration ); i_options, ppsz_options, 0, i_duration );
LocaleFree( psz_parse ); free( psz_parse );
free( psz_mrl ); free( psz_mrl );
if ( !EMPTY_STR(psz_artist) ) if ( !EMPTY_STR(psz_artist) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment