From f917e38277b193d205b6ebe73b48135431468372 Mon Sep 17 00:00:00 2001 From: Jay Bourque Date: Sat, 13 Jul 2013 16:17:59 -0500 Subject: Use Py_XDECREF in fail section --- numpy/core/src/umath/ufunc_object.c | 9 +++------ 1 file 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; } -- cgit v1.2.1