Commit f0f97b4e authored by Rafaël Carré's avatar Rafaël Carré

Fix leaking of psz_object_name

parent aab3bb4e
......@@ -265,6 +265,7 @@ void CacheLoad( vlc_object_t *p_this )
pp_cache[i]->p_module = vlc_module_create( p_this );
/* Load additional infos */
free( pp_cache[i]->p_module->psz_object_name );
LOAD_STRING( pp_cache[i]->p_module->psz_object_name );
LOAD_STRING( pp_cache[i]->p_module->psz_shortname );
LOAD_STRING( pp_cache[i]->p_module->psz_longname );
......
......@@ -1312,7 +1312,6 @@ static void DupModule( module_t *p_module )
/* We strdup() these entries so that they are still valid when the
* module is unloaded. */
p_module->psz_object_name = strdup( p_module->psz_object_name );
p_module->psz_capability = strdup( p_module->psz_capability );
p_module->psz_shortname = p_module->psz_shortname ?
strdup( p_module->psz_shortname ) : NULL;
......
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