From 899ffeb57a6a972b72450d1c7657ed541d8d763f Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Thu, 14 Nov 2002 19:22:26 +0000 Subject: [PATCH] Fix a memory leak in mod_deflate with dynamic content. Because the brigade was being destroyed (ie, cleanup unregistered) rather than just emptied out and then reused anyway, the last call down the filter stack would leak buckets. PR: 14321 Submitted by: Ken Franken Reviewed by: Jeff Trawick, Cliff Woolley git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97526 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ modules/filters/mod_deflate.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 174da035e1..7c87b47bce 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.44 + *) Fixed a memory leak in mod_deflate with dynamic content. + PR 14321 [Ken Franken ] + *) Add --[enable|disable]-v4-mapped configure option to control whether or not Apache expects to handle IPv4 connections on IPv6 listening sockets. Either setting will work on diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index bbb66d2cce..c340ccab15 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -510,7 +510,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f, } } - apr_brigade_destroy(bb); + apr_brigade_cleanup(bb); return APR_SUCCESS; } -- 2.40.0