diff --git a/SOURCES/polkit-0.112-polkitpermission-leak.patch b/SOURCES/polkit-0.112-polkitpermission-leak.patch new file mode 100644 index 0000000..97f8c44 --- /dev/null +++ b/SOURCES/polkit-0.112-polkitpermission-leak.patch @@ -0,0 +1,27 @@ +From dfd2c165447029c32510842350e924ef5ac3f679 Mon Sep 17 00:00:00 2001 +From: Rui Matos +Date: Thu, 2 Mar 2017 14:50:31 +0100 +Subject: [PATCH] polkitpermission: Fix a memory leak on authority changes + +Signed-off-by: Rui Matos + +https://bugs.freedesktop.org/show_bug.cgi?id=99741 +--- + src/polkit/polkitpermission.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/polkit/polkitpermission.c b/src/polkit/polkitpermission.c +index f8a666e..f264094 100644 +--- a/src/polkit/polkitpermission.c ++++ b/src/polkit/polkitpermission.c +@@ -454,6 +454,7 @@ changed_check_cb (GObject *source_object, + if (result != NULL) + { + process_result (permission, result); ++ g_object_unref (result); + } + else + { +-- +2.9.3 + diff --git a/SPECS/polkit.spec b/SPECS/polkit.spec index 17b8fa0..0499743 100644 --- a/SPECS/polkit.spec +++ b/SPECS/polkit.spec @@ -6,7 +6,7 @@ Summary: An authorization framework Name: polkit Version: 0.112 -Release: 11%{?dist} +Release: 12%{?dist} License: LGPLv2+ URL: http://www.freedesktop.org/wiki/Software/polkit Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz @@ -23,6 +23,8 @@ Patch3: polkit-0.112-EnumerateActions-leak.patch Patch4: polkit-0.112-Polkit.spawn-leak.patch # https://bugs.freedesktop.org/show_bug.cgi?id=99741 Patch5: polkit-0.112-agent-leaks.patch +# https://bugs.freedesktop.org/show_bug.cgi?id=99741 +Patch6: polkit-0.112-polkitpermission-leak.patch Group: System Environment/Libraries BuildRequires: glib2-devel >= 2.30.0 BuildRequires: expat-devel @@ -95,6 +97,7 @@ Development documentation for polkit. %patch3 -p1 -b .EnumerateActions-leak %patch4 -p1 -b .Polkit.spawn-leak %patch5 -p1 -b .agent-leaks +%patch6 -p1 -b .polkitpermission-leak.patch %build %if 0%{?enable_autoreconf} @@ -183,6 +186,11 @@ fi %{_datadir}/gtk-doc %changelog +* Tue Apr 4 2017 Miloslav Trmač - 0.112-12 +- Fix a memory leak in PolkitPermission. + Patch by Rui Matos + Resolves: #1433915 + * Thu Feb 9 2017 Miloslav Trmač - 0.112-11 - Fix memory leaks when calling authentication agents Resolves: #1380166