[Numpy-svn] r4049 - trunk/numpy/lib/src

numpy-svn@scip... numpy-svn@scip...
Wed Sep 19 21:08:57 CDT 2007


Author: oliphant
Date: 2007-09-19 21:08:54 -0500 (Wed, 19 Sep 2007)
New Revision: 4049

Modified:
   trunk/numpy/lib/src/_compiled_base.c
Log:
Fix ticket #572:  memory leak in _insert for 0-d input.

Modified: trunk/numpy/lib/src/_compiled_base.c
===================================================================
--- trunk/numpy/lib/src/_compiled_base.c	2007-09-19 19:05:07 UTC (rev 4048)
+++ trunk/numpy/lib/src/_compiled_base.c	2007-09-20 02:08:54 UTC (rev 4049)
@@ -287,6 +287,7 @@
         Py_DECREF(amask);
         Py_DECREF(avals);
         PyDataMem_FREE(zero);
+        Py_DECREF(ainput);
         Py_INCREF(Py_None);
         return Py_None;
     }



More information about the Numpy-svn mailing list