Commit e05f67d2 authored by Miloslav Trmač's avatar Miloslav Trmač Committed by Ray Strode

Fix memory leaks in server_handle_*_temporary_authorizations

https://bugs.freedesktop.org/show_bug.cgi?id=99741Signed-off-by: 's avatarMiloslav Trmač <mitr@redhat.com>
parent eb71471f
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment