diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-06-04 18:24:17 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-06-04 18:24:17 -0600 |
commit | 4c854c2633894387988b43306ff72333cb00613a (patch) | |
tree | a48168c6e7c14a9cda185d905d875163353ea828 | |
parent | 805e11a4345d42b0cddc9ea0f59ae5f23eb99f4c (diff) | |
parent | a95c8e4ac10a5fa6748a0fb064eaad1d1417e327 (diff) | |
download | numpy-4c854c2633894387988b43306ff72333cb00613a.tar.gz |
Merge pull request #4784 from jaimefrio/iter-dealloc-gufunc
BUG: Avoid double iterator deallocation in `ufunc_object.c`
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 705359cb8..d825f15e9 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -1761,7 +1761,7 @@ make_arr_prep_args(npy_intp nin, PyObject *args, PyObject *kwds) * may be null, in which case the thread global one is fetched * - ufunc_name: name of ufunc */ -static int +static int _check_ufunc_fperr(int errmask, PyObject *extobj, char* ufunc_name) { int fperr; PyObject *errobj = NULL; @@ -2230,7 +2230,6 @@ PyUFunc_GeneralizedFunction(PyUFuncObject *ufunc, /* Get the variables needed for the loop */ iternext = NpyIter_GetIterNext(iter, NULL); if (iternext == NULL) { - NpyIter_Deallocate(iter); retval = -1; goto fail; } |