mystifyingyouth / rpms / polkit

Forked from rpms/polkit 2 years ago
Clone

Blame SOURCES/polkit-0.112-polkitpermission-leak.patch

51ea8e
From dfd2c165447029c32510842350e924ef5ac3f679 Mon Sep 17 00:00:00 2001
51ea8e
From: Rui Matos <tiagomatos@gmail.com>
51ea8e
Date: Thu, 2 Mar 2017 14:50:31 +0100
51ea8e
Subject: [PATCH] polkitpermission: Fix a memory leak on authority changes
51ea8e
51ea8e
Signed-off-by: Rui Matos <tiagomatos@gmail.com>
51ea8e
51ea8e
https://bugs.freedesktop.org/show_bug.cgi?id=99741
51ea8e
---
51ea8e
 src/polkit/polkitpermission.c | 1 +
51ea8e
 1 file changed, 1 insertion(+)
51ea8e
51ea8e
diff --git a/src/polkit/polkitpermission.c b/src/polkit/polkitpermission.c
51ea8e
index f8a666e..f264094 100644
51ea8e
--- a/src/polkit/polkitpermission.c
51ea8e
+++ b/src/polkit/polkitpermission.c
51ea8e
@@ -454,6 +454,7 @@ changed_check_cb (GObject       *source_object,
51ea8e
   if (result != NULL)
51ea8e
     {
51ea8e
       process_result (permission, result);
51ea8e
+      g_object_unref (result);
51ea8e
     }
51ea8e
   else
51ea8e
     {
51ea8e
-- 
51ea8e
2.9.3
51ea8e