summaryrefslogtreecommitdiff
path: root/buckets
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2009-03-25 19:16:28 +0000
committerJoe Orton <jorton@apache.org>2009-03-25 19:16:28 +0000
commit94b1dfa083a75036e329b3500b1d17f8948c4190 (patch)
tree37b782ea9fa01dce6b61cecea106615ea807761c /buckets
parent67bbf3c600ff321fa2a140287f4e69f57e47a549 (diff)
downloadapr-94b1dfa083a75036e329b3500b1d17f8948c4190.tar.gz
* buckets/apr_buckets_alloc.c (alloc_cleanup): Unconditionally
destroy the allocator since it's unconditionally created. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@758414 13f79535-47bb-0310-9956-ffa450edef68
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;
}