]> granicus.if.org Git - apache/commitdiff
Strip useless apr_brigade_cleanup() calls.
authorYann Ylavic <ylavic@apache.org>
Tue, 10 Jun 2014 12:44:15 +0000 (12:44 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 10 Jun 2014 12:44:15 +0000 (12:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1601624 13f79535-47bb-0310-9956-ffa450edef68

modules/echo/mod_echo.c
modules/filters/mod_deflate.c
modules/filters/mod_ratelimit.c
modules/filters/mod_substitute.c
modules/generators/mod_cgi.c
modules/proxy/mod_proxy_ftp.c
server/core_filters.c

index b8943363cd7465e3b3659086306812b11dfac1a5..336f90f3fa534285109c9fd8dca489e75020a7bc 100644 (file)
@@ -160,7 +160,6 @@ static int process_echo_connection(conn_rec *c)
 
         /* Something horribly wrong happened.  Someone didn't block! */
         if (APR_BRIGADE_EMPTY(bb)) {
-            apr_brigade_cleanup(bb);
             ap_log_error(APLOG_MARK, APLOG_INFO, rv, c->base_server, APLOGNO(01612)
                          "ProtocolEcho: Error - read empty brigade from %s!",
                          c->client_ip);
index 92d39ff1af039e7694aad729db3641e7e01c0045..729cbefa3d2296420f1b722faa96333cb6f889cf 100644 (file)
@@ -930,7 +930,6 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
         apr_bucket_delete(e);
     }
 
-    apr_brigade_cleanup(bb);
     return APR_SUCCESS;
 }
 
@@ -1750,7 +1749,6 @@ static apr_status_t inflate_out_filter(ap_filter_t *f,
         apr_bucket_delete(e);
     }
 
-    apr_brigade_cleanup(bb);
     return APR_SUCCESS;
 }
 
index 939ab8e966200a20164413c9162aa04ee38ff764..278aa1b5396a1902a265256b94aa8563a0c3a863 100644 (file)
@@ -116,7 +116,6 @@ rate_limit_filter(ap_filter_t *f, apr_bucket_brigade *input_bb)
 
         if (!APR_BRIGADE_EMPTY(ctx->holdingbb)) {
             APR_BRIGADE_CONCAT(bb, ctx->holdingbb);
-            apr_brigade_cleanup(ctx->holdingbb);
         }
 
         while (ctx->state == RATE_FULLSPEED && !APR_BRIGADE_EMPTY(bb)) {
index 15cd8ee4131cd8e217dd2e3ed0fe1595acdf3483..7618cdca81d030a18675da43ebe196a88fbf3c4d 100644 (file)
@@ -391,8 +391,8 @@ static apr_status_t substitute_filter(ap_filter_t *f, apr_bucket_brigade *bb)
                 if (rv != APR_SUCCESS)
                     goto err;
                 APR_BRIGADE_CONCAT(ctx->passbb, ctx->pattbb);
+                apr_brigade_cleanup(ctx->linebb);
             }
-            apr_brigade_cleanup(ctx->linebb);
             APR_BUCKET_REMOVE(b);
             APR_BRIGADE_INSERT_TAIL(ctx->passbb, b);
         }
index 57eebb1f420a2ef968b1ce149e083571c69e163c..25175dd119aa7e5541411a0469339c7ef8f274c0 100644 (file)
@@ -921,8 +921,6 @@ static int cgi_handler(request_rec *r)
 
     AP_DEBUG_ASSERT(script_in != NULL);
 
-    apr_brigade_cleanup(bb);
-
 #if APR_FILES_AS_SOCKETS
     apr_file_pipe_timeout_set(script_in, 0);
     apr_file_pipe_timeout_set(script_err, 0);
index 5e9e756f8f03767f41e4730f504938cbc55965c0..addd033ec33ea6297328379118ba9a2a3e82264b 100644 (file)
@@ -2085,7 +2085,6 @@ static int proxy_ftp_handler(request_rec *r, proxy_worker *worker,
 #endif
             /* sanity check */
             if (APR_BRIGADE_EMPTY(bb)) {
-                apr_brigade_cleanup(bb);
                 break;
             }
 
index f523f998fe1446f2f0b6e402437cef6fe3b34f93..92e2ce1145d7516027ef0876c2dfd5401d51efdc 100644 (file)
@@ -625,7 +625,6 @@ static void setaside_remaining_output(ap_filter_t *f,
             }
             ap_save_brigade(f, &(ctx->buffered_bb), &bb,
                             ctx->deferred_write_pool);
-            apr_brigade_cleanup(bb);
         }
     }
     else if (ctx->deferred_write_pool) {