[Numpy-svn] r8367 - trunk/numpy/core/src/umath

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Apr 26 04:16:44 EDT 2010


Author: ptvirtan
Date: 2010-04-26 03:16:44 -0500 (Mon, 26 Apr 2010)
New Revision: 8367

Modified:
   trunk/numpy/core/src/umath/umathmodule.c.src
Log:
BUG: core: fix a reference count bug in umath:InitOtherOperators (cf #1464)

Thanks to mras

Modified: trunk/numpy/core/src/umath/umathmodule.c.src
===================================================================
--- trunk/numpy/core/src/umath/umathmodule.c.src	2010-04-26 01:02:07 UTC (rev 8366)
+++ trunk/numpy/core/src/umath/umathmodule.c.src	2010-04-26 08:16:44 UTC (rev 8367)
@@ -229,7 +229,6 @@
 #if defined(NPY_PY3K)
     f = PyDict_GetItemString(dictionary, "true_divide");
     PyDict_SetItemString(dictionary, "divide", f);
-    Py_DECREF(f);
 #endif
     return;
 }




More information about the Numpy-svn mailing list