Commit f7915d4e authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

server: Fix memory leak of object name structure.

parent 48737f0e
......@@ -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;
......
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