Commit cbe2c267 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Memory leaks

parent 3655c1c6
......@@ -544,6 +544,7 @@ void config_Free( module_t *p_module )
free( p_item->psz_name );
free( p_item->psz_text );
free( p_item->psz_longtext );
free( p_item->psz_oldname );
if (IsConfigStringType (p_item->i_type))
{
......
......@@ -349,7 +349,10 @@ int vlc_config_set (module_config_t *restrict item, int id, ...)
item->ppsz_list_text = dtext;
}
else
{
free (dtext);
item->ppsz_list_text = NULL;
}
item->i_list = len;
ret = 0;
......
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