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:
Sebastian Lackner 2016-02-08 13:48:12 +01:00 committed by Alexandre Julliard
parent 48737f0e68
commit f7915d4e43

View file

@ -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;