Skip to content
Snippets Groups Projects
Commit 16afc893 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Fix memory leak

parent e0105d9b
No related branches found
No related tags found
No related merge requests found
......@@ -691,10 +691,7 @@ found_shortcut:
/* This assumes that p_this is the object which will be using the
* module. That's not always the case ... but it is in most cases.
*/
if( psz_alias )
p_this->psz_object_name = strdup( psz_alias );
else
p_this->psz_object_name = strdup( p_module->psz_object_name );
p_this->psz_object_name = p_module->psz_object_name;
}
free( psz_shortcuts );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment