From 77713a7a4b310991eecdfb0e040751435f751228 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 25 May 2012 16:21:01 +0200 Subject: [PATCH] sap-dummy: Fix DBus connection leak if interface registration failed If DBus interface registration failed dbus connection should be unreferenced. --- sap/sap-dummy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sap/sap-dummy.c b/sap/sap-dummy.c index fd185c9c3..7ea4e9206 100644 --- a/sap/sap-dummy.c +++ b/sap/sap-dummy.c @@ -342,6 +342,8 @@ int sap_init(void) NULL, NULL) == FALSE) { error("sap-dummy interface %s init failed on path %s", SAP_DUMMY_IFACE, SAP_DUMMY_PATH); + dbus_connection_unref(connection); + connection = NULL; return -1; } -- 2.47.3