]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r757741 from trunk:
authorJim Jagielski <jim@apache.org>
Fri, 17 Apr 2009 13:44:27 +0000 (13:44 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 17 Apr 2009 13:44:27 +0000 (13:44 +0000)
* Fix a memory leak by freeing the memory consumed by the bucket.

PR: 44948
Submitted by: Dan Poirier <poirier pobox.com>
Reviewed by: rpluem

Submitted by: rpluem
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@766002 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/filters/mod_substitute.c

diff --git a/CHANGES b/CHANGES
index 1554a898f38150d523165f14aee924c7ad5a1b2d..fdd5836818c43108f6ba426d87ae01502af5dd16 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.2.12
 
+  *) mod_substitute: Fix a memory leak. PR 44948
+     [Dan Poirier <poirier pobox.com>]
+
   *) mod_proxy_ajp: Forward remote port information by default.
      [Rainer Jung]
 
diff --git a/STATUS b/STATUS
index f54160179f4d1dbb2c3724b7a5e3d9da9b32d572..6fa1b67c013cb97f9e1b49a6ad4a6803bb101cd0 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -95,13 +95,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
- * mod_substitute: Fix a memory leak.
-   Trunk version of patch:
-      http://svn.apache.org/viewvc?rev=757741&view=rev
-   Backport version for 2.2.x of patch:
-      Trunk version of patch works
-   +1: rpluem, gregames, jim
-
 
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
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;