summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2014-07-01 18:00:48 (GMT)
committerMiloslav Trmač <mitr@redhat.com>2015-06-18 20:20:53 (GMT)
commitec039f9d7ede5b839f5511e26d5cd6ae9107cb2e (patch)
treed5828087348853a0045bdce848b4a2e413be3511
parent0f5852a4bdabe377ddcdbed09a0c1f95710e17fe (diff)
downloadpolkit-ec039f9d7ede5b839f5511e26d5cd6ae9107cb2e.tar.gz
polkit-ec039f9d7ede5b839f5511e26d5cd6ae9107cb2e.tar.xz
Fix a memory leak when registering an authentication agent
https://bugs.freedesktop.org/show_bug.cgi?id=69501
-rw-r--r--src/polkitbackend/polkitbackendauthority.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/polkitbackend/polkitbackendauthority.c b/src/polkitbackend/polkitbackendauthority.c
index 14eea99..64560e1 100644
--- a/src/polkitbackend/polkitbackendauthority.c
+++ b/src/polkitbackend/polkitbackendauthority.c
@@ -900,6 +900,7 @@ server_handle_register_authentication_agent (Server *server,
g_dbus_method_invocation_return_value (invocation, g_variant_new ("()"));
out:
+ g_variant_unref (subject_gvariant);
if (subject != NULL)
g_object_unref (subject);
}