Mercurial > cpython-lru_cache-weakref
diff Modules/zlibmodule.c @ 23171:d5ce7ff531bd 2.2
[backport bug fix from the trunk]
Fix SF #544995 (zlib crash on second flush call)
Bug fix by mhammond.
Bug fix candidate for 2.2, not present in 2.1.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Fri, 19 Apr 2002 14:59:08 +0000 |
| parents | 91dd223829c6 |
| children |
line wrap: on
line diff
--- a/Modules/zlibmodule.c Fri Apr 19 04:06:06 2002 +0000 +++ b/Modules/zlibmodule.c Fri Apr 19 14:59:08 2002 +0000 @@ -648,6 +648,7 @@ zlib_error(self->zst, err, "while flushing"); Py_DECREF(RetVal); RetVal = NULL; + goto error; } if (_PyString_Resize(&RetVal, self->zst.total_out - start_total_out) < 0)
