summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-05-13 10:54:44 +0000
committerPauli Virtanen <pav@iki.fi>2010-05-13 10:54:44 +0000
commit5b4964b395f7c7c032a1d87f98b3f82c6ff8510c (patch)
tree1ce35ab434c328cb799ecee16fc37640d60fcde9
parent40c5daf1b6ddf182b4b03fb74ec83a1877f42803 (diff)
downloadnumpy-5b4964b395f7c7c032a1d87f98b3f82c6ff8510c.tar.gz
BUG: core: remove a double-DECREF in _import_umath (fixes #1483)
-rw-r--r--numpy/core/code_generators/generate_ufunc_api.py1
1 files changed, 0 insertions, 1 deletions
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;