1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Allocate the brigade containing the EOR bucket from the connection

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
This commit is contained in:
Brian Pane
2005-10-29 21:11:51 +00:00
parent a5af8acb5d
commit f0538ad65c

View 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);