summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-06-27 17:31:22 -0300
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-06-27 17:31:22 -0300
commit2e7479f8dbdbf10478bdf29064e699b3532249b4 (patch)
treef07a6e965bdc63351d9bbec89b7fdcfeb695bb48
parentf6295c582884eaac91145b8e1f7dae2c528ecda7 (diff)
eldbus: Missing dbus_connection_unref() in error path
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
-rw-r--r--src/lib/eldbus/eldbus_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eldbus/eldbus_core.c b/src/lib/eldbus/eldbus_core.c
index f47d440e42..040fe4c1dc 100644
--- a/src/lib/eldbus/eldbus_core.c
+++ b/src/lib/eldbus/eldbus_core.c
@@ -1000,6 +1000,8 @@ _connection_get(Eldbus_Connection_Type type, const char *address)
1000 !dbus_bus_register(conn->dbus_conn, &err)) 1000 !dbus_bus_register(conn->dbus_conn, &err))
1001 { 1001 {
1002 dbus_connection_close(conn->dbus_conn); 1002 dbus_connection_close(conn->dbus_conn);
1003 dbus_connection_unref(conn->dbus_conn);
1004 conn->dbus_conn = NULL;
1003 free(conn); 1005 free(conn);
1004 ERR("Error registering with bus: %s", err.message); 1006 ERR("Error registering with bus: %s", err.message);
1005 return NULL; 1007 return NULL;