summaryrefslogtreecommitdiffstats
path: root/Modules/zlibmodule.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-04-19 14:37:07 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-04-19 14:37:07 (GMT)
commitc72737e7b6ec3beeecafbef75fbc31e22e0d710b (patch)
tree37a97a61827b02e351eee229e621f669c90ddd6a /Modules/zlibmodule.c
parenta6aa71deec4694cdaf7ee3f72fbd2602335cd781 (diff)
downloadcpython-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.c1
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)