From 5b4964b395f7c7c032a1d87f98b3f82c6ff8510c Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Thu, 13 May 2010 10:54:44 +0000 Subject: BUG: core: remove a double-DECREF in _import_umath (fixes #1483) --- numpy/core/code_generators/generate_ufunc_api.py | 1 - 1 file changed, 1 deletion(-) (limited to 'numpy') diff --git a/numpy/core/code_generators/generate_ufunc_api.py b/numpy/core/code_generators/generate_ufunc_api.py index 2af2030c6..0ea502ddf 100644 --- a/numpy/core/code_generators/generate_ufunc_api.py +++ b/numpy/core/code_generators/generate_ufunc_api.py @@ -72,7 +72,6 @@ _import_umath(void) } PyUFunc_API = (void **)PyCObject_AsVoidPtr(c_api); Py_DECREF(c_api); - Py_DECREF(numpy); if (PyUFunc_API == NULL) { PyErr_SetString(PyExc_RuntimeError, "_UFUNC_API is NULL pointer"); return -1; -- cgit v1.2.1