mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 14:49:16 +02:00
gdbusauth: plug memory leak
Happens when the waiting-for-auth state is re-entered: SERVER_STATE_WAITING_FOR_AUTH | v G_DBUS_AUTH_MECHANISM_STATE_REJECTED | v SERVER_STATE_WAITING_FOR_AUTH Causing the previous `mech` pointer to get overwritten. https://bugzilla.gnome.org/show_bug.cgi?id=778991
This commit is contained in:
parent
77945667f7
commit
8693d60a28
@ -1132,6 +1132,7 @@ _g_dbus_auth_run_server (GDBusAuth *auth,
|
|||||||
gchar *initial_response;
|
gchar *initial_response;
|
||||||
gsize initial_response_len;
|
gsize initial_response_len;
|
||||||
|
|
||||||
|
g_clear_object (&mech);
|
||||||
mech = g_object_new (auth_mech_to_use_gtype,
|
mech = g_object_new (auth_mech_to_use_gtype,
|
||||||
"stream", auth->priv->stream,
|
"stream", auth->priv->stream,
|
||||||
"credentials", credentials,
|
"credentials", credentials,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user