diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2013-07-13 16:17:59 -0500 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2013-08-16 16:39:32 -0500 |
commit | f917e38277b193d205b6ebe73b48135431468372 (patch) | |
tree | 6c3ec9f906c7939c264955e41c52dfcf25b9dea2 | |
parent | 8f2273388c663a6d41ab03bbe5bd8388030b32ce (diff) | |
download | numpy-f917e38277b193d205b6ebe73b48135431468372.tar.gz |
Use Py_XDECREF in fail section
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index d099186ff..79fe1772f 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -5123,12 +5123,9 @@ ufunc_at(PyUFuncObject *ufunc, PyObject *args) fail: - if (op2_array != NULL) - Py_DECREF(op2_array); - if (iter != NULL) - Py_DECREF(iter); - if (iter2 != NULL) - Py_DECREF(iter2); + Py_XDECREF(op2_array); + Py_XDECREF(iter); + Py_XDECREF(iter2); return NULL; } |