From c821da5c78d082ffe4a55e27eb1112b580e07921 Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Sat, 31 Dec 2005 07:16:09 +0000 Subject: [PATCH] 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 --- server/mpm/experimental/event/event.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.40.0