From: Cliff Woolley Date: Thu, 14 Nov 2002 19:22:26 +0000 (+0000) Subject: Fix a memory leak in mod_deflate with dynamic content. Because the X-Git-Tag: 2.0.44~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70886b49ce34fc7a880252a0307b85e1c5a58027;p=apache 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 --- 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; }