fixed extra reference bug

This commit is contained in:
Erik Frojdh 2023-05-31 13:33:46 +02:00
parent 4efbb9a914
commit 05822e1c0c

View File

@ -55,6 +55,7 @@ static PyObject *clusterize(PyObject *self, PyObject *args,
if (nc != size) {
PyErr_SetString(PyExc_TypeError, "Parsed wrong size array!");
}
Py_DECREF(cl_array);
return cl_analysis;
}