]> granicus.if.org Git - apache/commitdiff
Associate a pool with the pool bucket so that it serves it's intended
authorRyan Bloom <rbb@apache.org>
Tue, 14 Nov 2000 04:22:03 +0000 (04:22 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 14 Nov 2000 04:22:03 +0000 (04:22 +0000)
purpose.  This also moves the create_pool function outside of an if to
decrease complexity.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86952 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 84f281e9f8a3a693b9eef2071f31312e3073cdb2..d5552405c9c3d658bddd445ae2576b07340cf8ee 100644 (file)
@@ -3056,12 +3056,11 @@ static apr_status_t coalesce_filter(ap_filter_t *f, ap_bucket_brigade *b)
 
     if (pass_the_brigade) {
         /* Insert ctx->buf into the correct spot in the brigade */
+        e = ap_bucket_create_pool(ctx->buf, ctx->cnt, p);
         if (insert_first) {
-            e = ap_bucket_create_pool(ctx->buf, ctx->cnt, NULL);
             AP_BRIGADE_INSERT_HEAD(b, e);
         } 
         else if (insert_before) {
-            e = ap_bucket_create_pool(ctx->buf, ctx->cnt, NULL);
             AP_BUCKET_INSERT_BEFORE(e, insert_before);
             AP_BUCKET_REMOVE(insert_before);
             ap_bucket_destroy(insert_before);