From f850a007c9c162c5c7d842f6bf5e77ff3e57da6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 8 Feb 2017 23:03:06 +0100 Subject: [PATCH 6/9] Fix memory leaks in server_handle_*_temporary_authorizations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://bugs.freedesktop.org/show_bug.cgi?id=99741 Signed-off-by: Miloslav Trmač --- src/polkitbackend/polkitbackendauthority.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/polkitbackend/polkitbackendauthority.c b/src/polkitbackend/polkitbackendauthority.c index cad3f74..148e152 100644 --- a/src/polkitbackend/polkitbackendauthority.c +++ b/src/polkitbackend/polkitbackendauthority.c @@ -1165,6 +1165,7 @@ server_handle_enumerate_temporary_authorizations (Server *server g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a(ss(sa{sv})tt))", &builder)); out: + g_variant_unref (subject_gvariant); if (subject != NULL) g_object_unref (subject); } @@ -1211,6 +1212,7 @@ server_handle_revoke_temporary_authorizations (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); } -- 2.7.4