Diff between b7bc38497eb035123f1e38ec80ff6ece722b64c0 and 77713a7a4b310991eecdfb0e040751435f751228

Changed Files

File Additions Deletions Status
sap/sap-dummy.c +2 -0 modified

Full Patch

diff --git a/sap/sap-dummy.c b/sap/sap-dummy.c
index fd185c9..7ea4e92 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;
 	}