From 4631364c7a808ca14bee863994a7ad2555df78b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 8 Feb 2017 22:57:21 +0100 Subject: [PATCH 5/9] Fix a memory leak in server_handle_authentication_agent_response{,2} 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 2bcad62..cad3f74 100644 --- a/src/polkitbackend/polkitbackendauthority.c +++ b/src/polkitbackend/polkitbackendauthority.c @@ -1054,6 +1054,7 @@ server_handle_authentication_agent_response (Server *server, g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); out: + g_variant_unref (identity_gvariant); if (identity != NULL) g_object_unref (identity); } @@ -1104,6 +1105,7 @@ server_handle_authentication_agent_response2 (Server *server, g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); out: + g_variant_unref (identity_gvariant); if (identity != NULL) g_object_unref (identity); } -- 2.7.4