apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r758414 - /apr/apr/trunk/buckets/apr_buckets_alloc.c
Date Wed, 25 Mar 2009 19:16:34 GMT
Author: jorton
Date: Wed Mar 25 19:16:28 2009
New Revision: 758414

URL: http://svn.apache.org/viewvc?rev=758414&view=rev
Log:
* buckets/apr_buckets_alloc.c (alloc_cleanup): Unconditionally
  destroy the allocator since it's unconditionally created.

Modified:
    apr/apr/trunk/buckets/apr_buckets_alloc.c

Modified: apr/apr/trunk/buckets/apr_buckets_alloc.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/buckets/apr_buckets_alloc.c?rev=758414&r1=758413&r2=758414&view=diff
==============================================================================
--- apr/apr/trunk/buckets/apr_buckets_alloc.c (original)
+++ apr/apr/trunk/buckets/apr_buckets_alloc.c Wed Mar 25 19:16:28 2009
@@ -47,11 +47,7 @@
 
     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;
 }



Mime
View raw message