From a4df53ad1ce3cc4b2d0d1f38bc8d7dd1cfa02da9 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 1 Feb 2001 16:29:07 +0000 Subject: [PATCH] Fix a huge memory leak in the ob_gzhandler. --- ext/zlib/zlib.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.50.1