diff options
author | Michael Droettboom <mdboom@gmail.com> | 2011-05-02 11:03:13 -0400 |
---|---|---|
committer | Mark Wiebe <mwwiebe@gmail.com> | 2011-05-02 11:43:56 -0700 |
commit | 516d50cf42833c34ca617c2f09e0e779c6b93665 (patch) | |
tree | bef1f913eec2e99e8be80d7278112f4a6cdf3f6c | |
parent | ded703d47944a95c370eb1ecf518034162a89394 (diff) | |
download | numpy-516d50cf42833c34ca617c2f09e0e779c6b93665.tar.gz |
BUG: Cleanup in PyUFunc_FromFuncAndDataAndSignature error case.
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 472c1b55e..930c91ca1 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -4466,6 +4466,7 @@ PyUFunc_FromFuncAndDataAndSignature(PyUFuncGenericFunction *func, void **data, self->core_signature = NULL; if (signature != NULL) { if (_parse_signature(self, signature) != 0) { + Py_DECREF(self); return NULL; } } |