diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-25 19:16:28 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-25 19:16:28 +0000 |
commit | e3df92d7a73fca2012f6b4b9061c12d22ea0b1a0 (patch) | |
tree | 37b782ea9fa01dce6b61cecea106615ea807761c /buckets | |
parent | c38f5df7210199d3c6beec310fece36669c452fa (diff) | |
download | libapr-e3df92d7a73fca2012f6b4b9061c12d22ea0b1a0.tar.gz |
* buckets/apr_buckets_alloc.c (alloc_cleanup): Unconditionally
destroy the allocator since it's unconditionally created.
git-svn-id: http://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.c | 6 |
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; } |