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

Fix memory leak

parent e0105d9b
......@@ -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 );
......
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