[Numpy-svn] r8092 - branches/1.4.x/numpy/core/src/multiarray

numpy-svn@scip... numpy-svn@scip...
Sun Feb 7 15:13:40 CST 2010


Author: charris
Date: 2010-02-07 15:13:40 -0600 (Sun, 07 Feb 2010)
New Revision: 8092

Modified:
   branches/1.4.x/numpy/core/src/multiarray/ctors.c
Log:
BUG: Partial backport of r8085 to fix ticket #1388.


Modified: branches/1.4.x/numpy/core/src/multiarray/ctors.c
===================================================================
--- branches/1.4.x/numpy/core/src/multiarray/ctors.c	2010-02-07 20:53:39 UTC (rev 8091)
+++ branches/1.4.x/numpy/core/src/multiarray/ctors.c	2010-02-07 21:13:40 UTC (rev 8092)
@@ -3104,6 +3104,9 @@
         PyErr_Format(PyExc_ValueError,
                      "offset must be positive and smaller than %"
                      INTP_FMT, (intp)ts);
+        Py_DECREF(buf);
+        Py_DECREF(type);
+        return NULL;
     }
 
     data += offset;



More information about the Numpy-svn mailing list