summaryrefslogtreecommitdiff
path: root/buckets
diff options
context:
space:
mode:
Diffstat (limited to 'buckets')
-rw-r--r--buckets/apr_buckets_alloc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/buckets/apr_buckets_alloc.c b/buckets/apr_buckets_alloc.c
index 9623f0af2..6a00a8e77 100644
--- a/buckets/apr_buckets_alloc.c
+++ b/buckets/apr_buckets_alloc.c
@@ -47,11 +47,7 @@ static apr_status_t alloc_cleanup(void *data)
apr_allocator_free(list->allocator, list->blocks);
-#if APR_POOL_DEBUG
- if (list->pool && list->allocator != apr_pool_allocator_get(list->pool)) {
- apr_allocator_destroy(list->allocator);
- }
-#endif
+ apr_allocator_destroy(list->allocator);
return APR_SUCCESS;
}