server: Fix memory leak of object name structure.

Sebastian Lackner sebastian at fds-team.de
Mon Feb 8 06:48:12 CST 2016


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

Introduced with b21a3240705fdaf9f70a0eb1d2ff4736efcd35c9.

 server/object.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/server/object.c b/server/object.c
index c8098ca..b8be122 100644
--- a/server/object.c
+++ b/server/object.c
@@ -222,6 +222,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;
-- 
2.7.0



More information about the wine-patches mailing list