Commit b34411ae authored by Rémi Duraffort's avatar Rémi Duraffort

Fix memleak when parsing VLC_VAR_LIST.

Backported from 0.9-bugfix
parent c8d1a938
......@@ -1163,6 +1163,10 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option,
var_Set( p_obj, psz_name, val );
// If that's a list, remove all elements allocated
if( i_type == VLC_VAR_LIST )
FreeList( &val );
cleanup:
free( psz_name );
}
......
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