Skip to content

Commit

Permalink
Merge pull request #22392 from charris/backport-22296
Browse files Browse the repository at this point in the history
BUG: Memory leaks in numpy.nested_iters
  • Loading branch information
charris committed Oct 6, 2022
2 parents 8274a16 + f6a3c11 commit 22a41b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions numpy/core/src/multiarray/nditer_pywrap.c
Expand Up @@ -1045,6 +1045,7 @@ NpyIter_NestedIters(PyObject *NPY_UNUSED(self),

if (iter->iter == NULL) {
Py_DECREF(ret);
Py_DECREF(iter);
goto fail;
}

Expand Down

0 comments on commit 22a41b5

Please sign in to comment.