mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 05:04:18 +08:00
sap-dummy: Fix DBus connection leak if interface registration failed
If DBus interface registration failed dbus connection should be unreferenced.
This commit is contained in:
parent
b7bc38497e
commit
77713a7a4b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user