summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorChristoph Gohlke <cgohlke@uci.edu>2021-02-24 06:57:11 -0800
committerGitHub <noreply@github.com>2021-02-24 06:57:11 -0800
commite2740334e8f205faee2e307db44bcc2c65ca586e (patch)
treea88040509afd19caab5ed4776c0298ddeaef4509 /numpy
parente97fba2e84ff2f2070c7abecbb8070a95df9f69b (diff)
downloadnumpy-e2740334e8f205faee2e307db44bcc2c65ca586e.tar.gz
Goto done when an error condition is reached
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++) {