fixed extra reference bug
This commit is contained in:
parent
4efbb9a914
commit
05822e1c0c
@ -55,6 +55,7 @@ static PyObject *clusterize(PyObject *self, PyObject *args,
|
|||||||
if (nc != size) {
|
if (nc != size) {
|
||||||
PyErr_SetString(PyExc_TypeError, "Parsed wrong size array!");
|
PyErr_SetString(PyExc_TypeError, "Parsed wrong size array!");
|
||||||
}
|
}
|
||||||
|
Py_DECREF(cl_array);
|
||||||
return cl_analysis;
|
return cl_analysis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user