Skip to content

Commit

Permalink
fixed memory leak (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Apr 14, 2022
1 parent 25a67e4 commit 65caf5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pantab/src/writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ PyObject *write_to_hyper(PyObject *Py_UNUSED(dummy), PyObject *args) {
Py_ssize_t colcount = PyObject_Length(arrList);
Py_ssize_t bufPos;
NpyIter **npyIters = initiateIters(arrList);
Py_DECREF(arrList);

if (npyIters == NULL) {
PyBuffer_Release(&buf);
free(enumerated_dtypes);
Expand Down

0 comments on commit 65caf5d

Please sign in to comment.