mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-04 16:30:35 +01:00
loopback: Don't free credentials borrowed from the connection
We currently get away with this because the connection isn't fully freed before we exit, but the connection is meant to own the result of _dbus_connection_get_credentials() (it's "(transfer none)" in GLib terminology). Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194
This commit is contained in:
parent
8868aac95d
commit
532d6d7cae
1 changed files with 0 additions and 1 deletions
|
|
@ -302,7 +302,6 @@ test_connect (Fixture *f,
|
|||
_dbus_string_get_const_data (&cred_string));
|
||||
g_assert_cmpstr (_dbus_string_get_const_data (&cred_string), !=, NULL);
|
||||
_dbus_string_free (&cred_string);
|
||||
_dbus_clear_credentials (&creds);
|
||||
|
||||
dbus_free (address);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue