From: Sascha Schumann Date: Thu, 1 Feb 2001 16:29:07 +0000 (+0000) Subject: Fix a huge memory leak in the ob_gzhandler. X-Git-Tag: php-4.0.5RC1~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4df53ad1ce3cc4b2d0d1f38bc8d7dd1cfa02da9;p=php Fix a huge memory leak in the ob_gzhandler. --- 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; }