Skip to content

Commit

Permalink
Fix memory leak in stream_reader seek, fixes indygreg#82
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed May 10, 2019
1 parent 74fa590 commit afd1bce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions c-ext/decompressionreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@ static PyObject* reader_seek(ZstdDecompressionReader* self, PyObject* args) {

readSize = PyBytes_GET_SIZE(readResult);

Py_CLEAR(readResult);

/* Empty read means EOF. */
if (!readSize) {
break;
Expand Down

0 comments on commit afd1bce

Please sign in to comment.