[Numpy-svn] r3542 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Wed Feb 7 17:30:04 CST 2007


Author: oliphant
Date: 2007-02-07 17:29:59 -0600 (Wed, 07 Feb 2007)
New Revision: 3542

Modified:
   trunk/numpy/core/src/ufuncobject.c
Log:
Remove DECREF in userdef portion of ufuncobject.c because it is a borrowed reference.

Modified: trunk/numpy/core/src/ufuncobject.c
===================================================================
--- trunk/numpy/core/src/ufuncobject.c	2007-02-07 23:17:28 UTC (rev 3541)
+++ trunk/numpy/core/src/ufuncobject.c	2007-02-07 23:29:59 UTC (rev 3542)
@@ -815,7 +815,6 @@
                         }
                         funcdata = funcdata->next;
                 }
-                Py_DECREF(obj);
                 PyErr_SetString(PyExc_TypeError, msg);
                 goto fail;
         }



More information about the Numpy-svn mailing list