Commit 09780abc authored by Rémi Duraffort's avatar Rémi Duraffort

Fix a memleak when parsing VLC_VAR_LIST

parent 33a2e65a
...@@ -1167,6 +1167,10 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option, ...@@ -1167,6 +1167,10 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option,
var_Set( p_obj, psz_name, val ); 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: cleanup:
free( psz_name ); 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