]> granicus.if.org Git - php/commitdiff
Fix a huge memory leak in the ob_gzhandler.
authorSascha Schumann <sas@php.net>
Thu, 1 Feb 2001 16:29:07 +0000 (16:29 +0000)
committerSascha Schumann <sas@php.net>
Thu, 1 Feb 2001 16:29:07 +0000 (16:29 +0000)
ext/zlib/zlib.c

index 5a8a634eabcfa7c3a9d512d11296d06c4f269e10..ed8299e6d0536c82df9b323b811ac3c1b91c1874 100644 (file)
@@ -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;
 }