Commit 537b4a27 authored by Karl Wette's avatar Karl Wette
Browse files

SWIGPython.i: add missing reference count decrement of 'objelem'

parent c8c89429
......@@ -841,6 +841,7 @@ SWIGINTERN bool swiglal_release_parent(void *ptr) {
// Copy the C array element to the NumPy array.
PyObject* objelem = OUTCALL;
PyArray_SETITEM(nparr, PyArray_GetPtr((PyArrayObject*)nparr, idx), objelem);
Py_CLEAR(objelem);
// Increment the NumPy array index.
swiglal_py_increment_idx(ndims, dims, idx);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment