]> granicus.if.org Git - apache/commitdiff
* Fix a memory leak by freeing the memory consumed by the bucket.
authorRuediger Pluem <rpluem@apache.org>
Tue, 24 Mar 2009 11:30:47 +0000 (11:30 +0000)
committerRuediger Pluem <rpluem@apache.org>
Tue, 24 Mar 2009 11:30:47 +0000 (11:30 +0000)
PR: 44948
Submitted by: Dan Poirier <poirier pobox.com>
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@757741 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/filters/mod_substitute.c

diff --git a/CHANGES b/CHANGES
index 8f22b64b9fdff315998a46a7252226c22ab8f81a..e16d0be1b1f9a0b6f02f10f38477d86d479e4cb2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 
 Changes with Apache 2.3.3
 
+  *) mod_substitute: Fix a memory leak. PR 44948
+     [Dan Poirier <poirier pobox.com>]
+
 Changes with Apache 2.3.2
 
   *) mod_mime_magic: Fix detection of compressed content. [Rainer Jung]
index 98beae2c2bcea0e6984a5ebc190a7e0fc2e1f995..07030403ab0d9f762d64a4534be1349e0d7e8855 100644 (file)
@@ -373,7 +373,7 @@ static apr_status_t substitute_filter(ap_filter_t *f, apr_bucket_brigade *bb)
              */
             rv = apr_bucket_read(b, &buff, &bytes, APR_BLOCK_READ);
             if (rv != APR_SUCCESS || bytes == 0) {
-                APR_BUCKET_REMOVE(b);
+                apr_bucket_delete(b);
             }
             else {
                 int num = 0;