]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Allocate the brigade containing the EOR bucket from the connection
authorBrian Pane <brianp@apache.org>
Sat, 29 Oct 2005 21:11:51 +0000 (21:11 +0000)
committerBrian Pane <brianp@apache.org>
Sat, 29 Oct 2005 21:11:51 +0000 (21:11 +0000)
pool, rather than the request pool, because the core output filter
may need to reference the brigade immediately after deleting the
EOR bucket (and thus the request pool).  This fixes a coredump
encountered when running t/TEST on an httpd compiled with
"--enable-pool-debug."

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

modules/http/http_request.c

index 43abefc0ebea85795dfb95fbe0edd08ad32fdc13..adbf4be883e44aefb4d4e8b58e627459062f2b1b 100644 (file)
@@ -254,7 +254,7 @@ void ap_process_async_request(request_rec *r)
      * this bucket is destroyed, the request will be logged and
      * its pool will be freed
      */
-    bb = apr_brigade_create(r->pool, r->connection->bucket_alloc);
+    bb = apr_brigade_create(r->connection->pool, r->connection->bucket_alloc);
     b = ap_bucket_eor_create(r->connection->bucket_alloc, r);
     APR_BRIGADE_INSERT_HEAD(bb, b);
     ap_pass_brigade(r->connection->output_filters, bb);