diff options
author | Miloslav Trmač <mitr@redhat.com> | 2017-02-08 23:03:06 +0100 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-04-03 13:13:38 -0400 |
commit | 08fe855c632f8b06b740cd34b126802e466b2bdc (patch) | |
tree | 4d255003d47b01ce065c0d6d688a318f649cca41 | |
parent | 4d6ee233091d092e59a1448130491fca1ea4cbf2 (diff) | |
download | polkit-08fe855c632f8b06b740cd34b126802e466b2bdc.tar.gz |
Fix memory leaks in server_handle_*_temporary_authorizations
https://bugs.freedesktop.org/show_bug.cgi?id=99741
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
-rw-r--r-- | src/polkitbackend/polkitbackendauthority.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/polkitbackend/polkitbackendauthority.c b/src/polkitbackend/polkitbackendauthority.c index d1e3585..0d1fac4 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); } |