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 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; } -- on behalf of ST-Ericsson -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html