- plug a rather huge leak
authorMichael Wallner <mike@php.net>
Tue, 20 Jun 2006 18:42:04 +0000 (18:42 +0000)
committerMichael Wallner <mike@php.net>
Tue, 20 Jun 2006 18:42:04 +0000 (18:42 +0000)
# many thanks to Thomas Landrø Johnsen

http_encoding_api.c

index 959031d0bcf47b6631a89ffd50cae2ca2f9a09f6..06a175ff6a1e11478631f1ee6b13e69ca7fbf49e 100644 (file)
@@ -327,6 +327,7 @@ retry_raw_inflate:
                switch (status = http_inflate_rounds(&Z, Z_NO_FLUSH, decoded, decoded_len)) {
                        case Z_OK:
                        case Z_STREAM_END:
+                               inflateEnd(&Z);
                                return SUCCESS;
                        
                        case Z_DATA_ERROR: