[Pkg-utopia-commits] r3139 - in /packages/unstable/policykit/debian: changelog patches/04_entry_leak.patch patches/series

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Thu Jun 18 07:22:33 UTC 2009


Author: biebl
Date: Thu Jun 18 07:22:31 2009
New Revision: 3139

URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=3139
Log:
* debian/patches/04_entry_leak.patch
  - Plug a memory leak. Patch pulled from Fedora.

Added:
    packages/unstable/policykit/debian/patches/04_entry_leak.patch
Modified:
    packages/unstable/policykit/debian/changelog
    packages/unstable/policykit/debian/patches/series

Modified: packages/unstable/policykit/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/policykit/debian/changelog?rev=3139&op=diff
==============================================================================
--- packages/unstable/policykit/debian/changelog (original)
+++ packages/unstable/policykit/debian/changelog Thu Jun 18 07:22:31 2009
@@ -7,6 +7,8 @@
     - Do no longer ship /var/run/PolicyKit in the package itself.
   * debian/control
     - Bump Standards-Version to 3.8.1.
+  * debian/patches/04_entry_leak.patch
+    - Plug a memory leak. Patch pulled from Fedora.
 
  -- Michael Biebl <biebl at debian.org>  Thu, 18 Jun 2009 08:55:53 +0200
 

Added: packages/unstable/policykit/debian/patches/04_entry_leak.patch
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/policykit/debian/patches/04_entry_leak.patch?rev=3139&op=file
==============================================================================
--- packages/unstable/policykit/debian/patches/04_entry_leak.patch (added)
+++ packages/unstable/policykit/debian/patches/04_entry_leak.patch Thu Jun 18 07:22:31 2009
@@ -1,0 +1,37 @@
+diff -up PolicyKit-0.9/src/polkit/polkit-policy-file-entry.c.entry-leak PolicyKit-0.9/src/polkit/polkit-policy-file-entry.c
+--- PolicyKit-0.9/src/polkit/polkit-policy-file-entry.c.entry-leak	2008-08-29 21:47:22.000000000 -0400
++++ PolicyKit-0.9/src/polkit/polkit-policy-file-entry.c	2008-08-29 21:50:13.000000000 -0400
+@@ -95,9 +95,11 @@ _polkit_policy_file_entry_new   (const c
+         char *contents;
+         size_t contents_size;
+         PolKitPolicyFileEntry *pfe;
++        char **tokens;
+ 
+         path = NULL;
+         contents = NULL;
++        tokens = NULL;
+ 
+         kit_return_val_if_fail (action_id != NULL && polkit_action_validate_id (action_id), NULL);
+ 
+@@ -153,7 +155,6 @@ _polkit_policy_file_entry_new   (const c
+         }
+ 
+         if (contents != NULL) {
+-                char **tokens;
+                 size_t num_tokens;
+                 PolKitResult any;
+                 PolKitResult inactive;
+@@ -183,11 +184,13 @@ _polkit_policy_file_entry_new   (const c
+ 
+         kit_free (path);
+         kit_free (contents);
++        kit_strfreev (tokens);
+ 
+         return pfe;
+ error:
+         kit_free (path);
+         kit_free (contents);
++        kit_strfreev (tokens);
+         if (pfe != NULL)
+                 polkit_policy_file_entry_unref (pfe);
+         return NULL;

Modified: packages/unstable/policykit/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/policykit/debian/patches/series?rev=3139&op=diff
==============================================================================
--- packages/unstable/policykit/debian/patches/series (original)
+++ packages/unstable/policykit/debian/patches/series Thu Jun 18 07:22:31 2009
@@ -1,3 +1,4 @@
 01_pam_polkit.patch
 02_dbus_policy.patch
 03_consolekit0.3-api.patch
+04_entry_leak.patch




More information about the Pkg-utopia-commits mailing list