[Python-modules-commits] r14878 - in packages/gamera/trunk/debian (3 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Sat Nov 13 14:19:30 UTC 2010


    Date: Saturday, November 13, 2010 @ 14:19:18
  Author: jwilk
Revision: 14878

Fix memory leak in the _to_raw_string() method.

Added:
  packages/gamera/trunk/debian/patches/fix-memory-leak-to-raw-string.diff
Modified:
  packages/gamera/trunk/debian/changelog
  packages/gamera/trunk/debian/patches/series

Modified: packages/gamera/trunk/debian/changelog
===================================================================
--- packages/gamera/trunk/debian/changelog	2010-11-11 21:40:06 UTC (rev 14877)
+++ packages/gamera/trunk/debian/changelog	2010-11-13 14:19:18 UTC (rev 14878)
@@ -2,8 +2,10 @@
 
   * Bump standards version to 3.9.1 (no changes needed).
   * Update patch headers. 
+  * Fix memory leak in the _to_raw_string() method (closes: #601597).
+    (fix-memory-leak-to-raw-string.diff)
 
- -- Jakub Wilk <jwilk at debian.org>  Thu, 02 Sep 2010 14:10:14 +0200
+ -- Jakub Wilk <jwilk at debian.org>  Sat, 13 Nov 2010 15:17:20 +0100
 
 gamera (3.2.6-1) unstable; urgency=low
 

Added: packages/gamera/trunk/debian/patches/fix-memory-leak-to-raw-string.diff
===================================================================
--- packages/gamera/trunk/debian/patches/fix-memory-leak-to-raw-string.diff	                        (rev 0)
+++ packages/gamera/trunk/debian/patches/fix-memory-leak-to-raw-string.diff	2010-11-13 14:19:18 UTC (rev 14878)
@@ -0,0 +1,15 @@
+Description: Fix memory leak in the _to_raw_string() method.
+Origin: upstream, http://gamera.svn.sourceforge.net/viewvc/gamera/trunk/gamera/include/plugins/string_io.hpp?r1=1063&r2=1271
+Last-Update: 2010-11-13
+
+--- a/include/plugins/string_io.hpp
++++ b/include/plugins/string_io.hpp
+@@ -37,7 +37,7 @@
+   for (; j != image.vec_end(); ++i, ++j) {
+     *i = *j;
+   }
+-  return Py_BuildValue(CHAR_PTR_CAST "O", pystring);
++  return pystring;
+ };
+ 
+ template <class T>

Modified: packages/gamera/trunk/debian/patches/series
===================================================================
--- packages/gamera/trunk/debian/patches/series	2010-11-11 21:40:06 UTC (rev 14877)
+++ packages/gamera/trunk/debian/patches/series	2010-11-13 14:19:18 UTC (rev 14878)
@@ -4,3 +4,4 @@
 use-system-galib.diff
 use-system-vigra.diff
 use-system-python-modules.diff
+fix-memory-leak-to-raw-string.diff




More information about the Python-modules-commits mailing list