summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2017-02-14 23:32:05 +0100
committerYann Ylavic <ylavic@apache.org>2017-02-14 23:32:05 +0100
commit67e267e0e26df6adf4f3a7ebac3b5c379bc8d7d8 (patch)
treec525cf7796aa325e3f506e631978d3cf63d9178e /server
parentutil_filter: better ap_pass_brigade() vs empty brigades. (diff)
downloadapache2-67e267e0e26df6adf4f3a7ebac3b5c379bc8d7d8.tar.xz
apache2-67e267e0e26df6adf4f3a7ebac3b5c379bc8d7d8.zip
default_handler: cleanup outputed brigade before leaving.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1783041 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/core.c b/server/core.c
index f802769649..34b7ad67e1 100644
--- a/server/core.c
+++ b/server/core.c
@@ -5017,6 +5017,8 @@ static int default_handler(request_rec *r)
APR_BRIGADE_INSERT_TAIL(bb, e);
status = ap_pass_brigade(r->output_filters, bb);
+ apr_brigade_cleanup(bb);
+
if (status == APR_SUCCESS
|| r->status != HTTP_OK
|| c->aborted) {