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

Fix memory leak on error path (CID 62)

Already fixed long ago on master.
parent 8cebbe66
......@@ -1157,6 +1157,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
msg_Warn( p_this, "could not open config file %s for writing",
psz_filename );
free( psz_filename );
free( p_bigbuffer );
vlc_list_release( p_list );
vlc_mutex_unlock( &p_this->p_vlc->config_lock );
return -1;
......
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