From 3bf71c54d8cc32e018e3840eb6542e12ba2bbabc Mon Sep 17 00:00:00 2001 From: Nadeem Vawda Date: Sat, 13 Aug 2011 15:42:50 +0200 Subject: [PATCH] Fix incorrect comment in zlib.Decompress.flush(). Reported by Oleg Oshmyan in issue #12646. --- Modules/zlibmodule.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index dc707ff6cf..711004e63f 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -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; -- 2.50.0