mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-26 06:13:30 +08:00
agent: Fix D-Bus reply memory leaks
This commit is contained in:
parent
c2ab28e661
commit
8a06194b08
@ -504,6 +504,7 @@ static char *get_default_adapter_path(DBusConnection *conn)
|
||||
fprintf(stderr, "%s\n", err.message);
|
||||
dbus_error_free(&err);
|
||||
}
|
||||
dbus_message_unref(reply);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -562,6 +563,7 @@ static char *get_adapter_path(DBusConnection *conn, const char *adapter)
|
||||
fprintf(stderr, "%s\n", err.message);
|
||||
dbus_error_free(&err);
|
||||
}
|
||||
dbus_message_unref(reply);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user