summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-02-01 16:29:07 +0000
committerSascha Schumann <sas@php.net>2001-02-01 16:29:07 +0000
commita4df53ad1ce3cc4b2d0d1f38bc8d7dd1cfa02da9 (patch)
tree674dea39c4d7fffc8af83c9a6a75805cd701b62d
parent138ab8eccf42d2dedff06891b66023f591f3236a (diff)
downloadphp-git-a4df53ad1ce3cc4b2d0d1f38bc8d7dd1cfa02da9.tar.gz
Fix a huge memory leak in the ob_gzhandler.
-rw-r--r--ext/zlib/zlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 5a8a634eab..ed8299e6d0 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -1032,6 +1032,7 @@ int php_deflate_string(const char *str, uint str_length, char **newstr, uint *ne
*new_length = buf_used + 10 + 8;
*newstr = buffer;
+ deflateEnd(&ZLIBG(stream));
return SUCCESS;
}