Package: libpolkit-gobject-1-0
Version: 0.105-3
Severity: normal
Tags: patch
I've found, that policykit-1-0.105 in my Debian Wheezy doesn't release
reference counters of GVariant data for
org.freedesktop.PolicyKit1.Authority.EnumerateActions DBUS call results
handler (polkit_authority_enumerate_actions_finish).
This bug causes huge memory leak in kded4, about 2-3 MB per 10 seconds.
Disabling powerdevil service (which uses DBUS and policykit-1) solves
this problem, but KDE without powerdevil is not functional on laptop.
So in my case attached patch solves my kded4 with enabled powerdevil
extreme memory leak.
Patch is also avaliable at
http://cgit.freedesktop.org/polkit/patch/?id=f4d71e0de885010494b8b0b8d62ca910011d7544
-- System Information:
Debian Release: 7.8
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libpolkit-gobject-1-0 depends on:
ii libc6 2.13-38+deb7u6
ii libglib2.0-0 2.33.12+really2.32.4-5
ii multiarch-support 2.13-38+deb7u6
libpolkit-gobject-1-0 recommends no packages.
libpolkit-gobject-1-0 suggests no packages.
Description: Fix for memory leak in EnumerateActions call results handler.
Policykit-1 doesn't release reference counters of GVariant data for
org.freedesktop.PolicyKit1.Authority.EnumerateActions dbus call.
This patch fixed reference counting and following memory leak.
---
--- policykit-1-0.105.orig/src/polkit/polkitauthority.c
+++ policykit-1-0.105/src/polkit/polkitauthority.c
@@ -715,7 +715,6 @@ polkit_authority_enumerate_actions_finis
while ((child = g_variant_iter_next_value (&iter)) != NULL)
{
ret = g_list_prepend (ret, polkit_action_description_new_for_gvariant (child));
- g_variant_ref_sink (child);
g_variant_unref (child);
}
ret = g_list_reverse (ret);
_______________________________________________
Pkg-utopia-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-utopia-maintainers