Kaydet (Commit) 3bf71c54 authored tarafından Nadeem Vawda's avatar Nadeem Vawda

Fix incorrect comment in zlib.Decompress.flush().

Reported by Oleg Oshmyan in issue #12646.
üst 1c38546e
......@@ -886,9 +886,7 @@ PyZlib_unflush(compobject *self, PyObject *args)
Py_END_ALLOW_THREADS
}
/* If flushmode is Z_FINISH, we also have to call deflateEnd() to free
various data structures. Note we should only get Z_STREAM_END when
flushmode is Z_FINISH */
/* If at end of stream, clean up any memory allocated by zlib. */
if (err == Z_STREAM_END) {
self->eof = 1;
self->is_initialised = 0;
......
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