diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-08-13 13:42:50 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-08-13 13:42:50 (GMT) |
commit | 3bf71c54d8cc32e018e3840eb6542e12ba2bbabc (patch) | |
tree | 32ffabb2df32d5b5295fea3edf7faa0bd926c494 /Modules | |
parent | 1c38546e49e3f4bd53c0d470bcaaa9fb2f823401 (diff) | |
download | cpython-3bf71c54d8cc32e018e3840eb6542e12ba2bbabc.zip cpython-3bf71c54d8cc32e018e3840eb6542e12ba2bbabc.tar.gz cpython-3bf71c54d8cc32e018e3840eb6542e12ba2bbabc.tar.bz2 |
Fix incorrect comment in zlib.Decompress.flush().
Reported by Oleg Oshmyan in issue #12646.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/zlibmodule.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index dc707ff..711004e 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; |