server: Fix memory leak of object name structure.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
48737f0e68
commit
f7915d4e43
|
@ -272,6 +272,7 @@ void *create_object( struct object *parent, const struct object_ops *ops, const
|
|||
if (!obj->ops->link_name( obj, name_ptr, parent ))
|
||||
{
|
||||
free_object( obj );
|
||||
free( name_ptr );
|
||||
return NULL;
|
||||
}
|
||||
name_ptr->obj = obj;
|
||||
|
|
Loading…
Reference in New Issue