[Numpy-svn] r8192 - trunk/numpy/core/src/private

numpy-svn@scip... numpy-svn@scip...
Sat Feb 20 12:21:29 CST 2010


Author: ptvirtan
Date: 2010-02-20 12:21:29 -0600 (Sat, 20 Feb 2010)
New Revision: 8192

Modified:
   trunk/numpy/core/src/private/npy_3kcompat.h
Log:
3K: BUG: fix refcount error in npy_PyFile_Dup

Modified: trunk/numpy/core/src/private/npy_3kcompat.h
===================================================================
--- trunk/numpy/core/src/private/npy_3kcompat.h	2010-02-20 18:21:12 UTC (rev 8191)
+++ trunk/numpy/core/src/private/npy_3kcompat.h	2010-02-20 18:21:29 UTC (rev 8192)
@@ -143,6 +143,7 @@
     if (ret == NULL) {
         return NULL;
     }
+    Py_DECREF(ret);
     fd = PyObject_AsFileDescriptor(file);
     if (fd == -1) {
         return NULL;



More information about the Numpy-svn mailing list