You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2009/03/25 19:39:56 UTC
svn commit: r758398 - /apr/apr/trunk/buckets/apr_buckets_alloc.c
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;