PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Wed Feb 23 07:49:18 PST 2011


 src/polkit/polkitactiondescription.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 58f8c06caf7abec48e500e4a9669a1690aa01109
Author: David Zeuthen <davidz at redhat.com>
Date:   Wed Feb 23 10:49:14 2011 -0500

    Fix a memory leak
    
    Signed-off-by: David Zeuthen <davidz at redhat.com>

diff --git a/src/polkit/polkitactiondescription.c b/src/polkit/polkitactiondescription.c
index 0391efd..4bd9604 100644
--- a/src/polkit/polkitactiondescription.c
+++ b/src/polkit/polkitactiondescription.c
@@ -316,6 +316,8 @@ polkit_action_description_new (const gchar                 *action_id,
   ret->implicit_any = implicit_any;
   ret->implicit_inactive = implicit_inactive;
   ret->implicit_active = implicit_active;
+  if (ret->annotations != NULL)
+    g_hash_table_unref (ret->annotations);
   ret->annotations = g_hash_table_ref (annotations);
   return ret;
 }


More information about the hal-commit mailing list