diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-03-23 11:01:34 -0500 |
|---|---|---|
| committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-03-23 18:10:29 -0500 |
| commit | ace44ff58daecd5d20d4ce9198f38681c6e5d9ee (patch) | |
| tree | 386215310a4c2affd523453655e0de6f15494cf4 /numpy/core/src | |
| parent | ed0ebd78b6e73de6550cb01ad8107f2b1b127e37 (diff) | |
| download | numpy-ace44ff58daecd5d20d4ce9198f38681c6e5d9ee.tar.gz | |
BUG: Add missing decref to `dtype` parsing
Diffstat (limited to 'numpy/core/src')
| -rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 1 |
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 577884503..df0a77889 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -4492,6 +4492,7 @@ _convert_typetup(PyObject *dtype_obj, PyObject **out_typetup) return 0; } *out_typetup = PyTuple_Pack(1, (PyObject *)dtype); + Py_DECREF(dtype); if (*out_typetup == NULL) { return -1; } |
