From e2740334e8f205faee2e307db44bcc2c65ca586e Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Wed, 24 Feb 2021 06:57:11 -0800 Subject: Goto done when an error condition is reached --- numpy/core/src/umath/ufunc_object.c | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy') 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++) { -- cgit v1.2.1