From f7915d4e43aa800172a6c1616d4a66b0ca655140 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Mon, 8 Feb 2016 13:48:12 +0100 Subject: [PATCH] server: Fix memory leak of object name structure. Signed-off-by: Sebastian Lackner Signed-off-by: Alexandre Julliard --- server/object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/object.c b/server/object.c index 6137c7a17ac..2b8b245c406 100644 --- a/server/object.c +++ b/server/object.c @@ -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;