summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/umath/ufunc_object.c1
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 269b2e81a..f30f31a2e 100644
--- a/numpy/core/src/umath/ufunc_object.c
+++ b/numpy/core/src/umath/ufunc_object.c
@@ -5222,6 +5222,7 @@ PyUFunc_RegisterLoopForDescr(PyUFuncObject *ufunc,
if (current->arg_dtypes == NULL) {
PyErr_NoMemory();
result = -1;
+ goto done;
}
else if (arg_dtypes != NULL) {
for (i = 0; i < ufunc->nargs; i++) {