connection: unref ep and bus and free match_db on error path
authorDjalal Harouni <tixxdz@opendz.org>
Mon, 31 Mar 2014 00:41:26 +0000 (01:41 +0100)
committerKay Sievers <kay@vrfy.org>
Mon, 31 Mar 2014 12:26:55 +0000 (14:26 +0200)
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
connection.c

index c623720343b63a8019fccd092ed3f60faa240659..e01e0ab0637977f86413a16f062248f2b702ffc2 100644 (file)
@@ -2062,7 +2062,7 @@ int kdbus_conn_new(struct kdbus_ep *ep,
                ret = kdbus_name_acquire(bus->name_registry, conn,
                                         name, &flags, NULL);
                if (ret < 0)
-                       goto exit_free_pool;
+                       goto exit_unref_ep;
        }
 
        if (is_monitor) {