apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r758398 - /apr/apr/trunk/buckets/apr_buckets_alloc.c
Date Wed, 25 Mar 2009 18:39:56 GMT
Author: jorton
Date: Wed Mar 25 18:39:52 2009
New Revision: 758398

URL: http://svn.apache.org/viewvc?rev=758398&view=rev
Log:
* buckets/apr_buckets_alloc.c (apr_bucket_alloc_create): Use a new
  allocator since the pool->allocator association has gone.

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=758398&r1=758397&r2=758398&view=diff
==============================================================================
--- apr/apr/trunk/buckets/apr_buckets_alloc.c (original)
+++ apr/apr/trunk/buckets/apr_buckets_alloc.c Wed Mar 25 18:39:52 2009
@@ -58,17 +58,12 @@
 
 APU_DECLARE_NONSTD(apr_bucket_alloc_t *) apr_bucket_alloc_create(apr_pool_t *p)
 {
-    apr_allocator_t *allocator = apr_pool_allocator_get(p);
+    apr_allocator_t *allocator;
     apr_bucket_alloc_t *list;
 
-#if APR_POOL_DEBUG
-    /* may be NULL for debug mode. */
-    if (allocator == NULL) {
-        if (apr_allocator_create(&allocator) != APR_SUCCESS) {
-            abort();
-        }
+    if (apr_allocator_create(&allocator) != APR_SUCCESS) {
+        abort();
     }
-#endif
 
     list = apr_bucket_alloc_create_ex(allocator);
     list->pool = p;



Mime
View raw message