diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-19 14:37:07 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-19 14:37:07 (GMT) |
commit | c72737e7b6ec3beeecafbef75fbc31e22e0d710b (patch) | |
tree | 37a97a61827b02e351eee229e621f669c90ddd6a /Modules/zlibmodule.c | |
parent | a6aa71deec4694cdaf7ee3f72fbd2602335cd781 (diff) | |
download | cpython-c72737e7b6ec3beeecafbef75fbc31e22e0d710b.zip cpython-c72737e7b6ec3beeecafbef75fbc31e22e0d710b.tar.gz cpython-c72737e7b6ec3beeecafbef75fbc31e22e0d710b.tar.bz2 |
Fix SF #544995 (zlib crash on second flush call)
Bug fix by mhammond.
Bug fix candidate for 2.2, not present in 2.1.
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r-- | Modules/zlibmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 8fc3bc2..a3891f7 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -648,6 +648,7 @@ PyZlib_flush(compobject *self, PyObject *args) 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) |