From: Brian Pane Date: Sat, 31 Dec 2005 07:16:09 +0000 (+0000) Subject: Removed the destruction of the bucket allocator prior to X-Git-Tag: 2.3.0~2640 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c821da5c78d082ffe4a55e27eb1112b580e07921;p=apache Removed the destruction of the bucket allocator prior to clearing the transaction pool. The bucket allocator will now get destroyed when apr_pool_clear() invokes its cleanup callback. With the old logic, memory corruption was possible if the pool contained any brigades that referenced any buckets allocated from the bucket allocator. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@360257 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/experimental/event/event.c b/server/mpm/experimental/event/event.c index 622a246464..38f187d1f8 100644 --- a/server/mpm/experimental/event/event.c +++ b/server/mpm/experimental/event/event.c @@ -678,7 +678,6 @@ read_request: if (cs->state == CONN_STATE_LINGER) { ap_lingering_close(c); - apr_bucket_alloc_destroy(cs->bucket_alloc); apr_pool_clear(p); ap_push_pool(worker_queue_info, p); return 1;