summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2018-06-01 17:20:17 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2018-06-02 20:20:03 +0200
commit1f5678c65c96d2534a687a2344fdc0655a832c47 (patch)
treed2b406168765279682f0f5323939b53dfdc19a76
parentd3b1cc17bb93de7025b2204c09545363f6f15264 (diff)
downloadgdm-1f5678c65c96d2534a687a2344fdc0655a832c47.tar.gz
libgdm: Don't leak connection on sync re-authentication
-rw-r--r--libgdm/gdm-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgdm/gdm-client.c b/libgdm/gdm-client.c
index 36292148..335a040a 100644
--- a/libgdm/gdm-client.c
+++ b/libgdm/gdm-client.c
@@ -604,7 +604,7 @@ gdm_client_open_reauthentication_channel_sync (GdmClient *client,
GCancellable *cancellable,
GError **error)
{
- GDBusConnection *connection;
+ g_autoptr(GDBusConnection) connection = NULL;
g_autoptr(GdmManager) manager = NULL;
GdmUserVerifier *user_verifier = NULL;
gboolean ret;