]> granicus.if.org Git - apache/commitdiff
Cleanup the bb brigade, because buckets inserted to it can be created from
authorJan Kaluža <jkaluza@apache.org>
Wed, 11 Dec 2013 07:27:12 +0000 (07:27 +0000)
committerJan Kaluža <jkaluza@apache.org>
Wed, 11 Dec 2013 07:27:12 +0000 (07:27 +0000)
scpool and this pool can be freed before this brigade.
POSSIBLE (but as yet unconfirmed) fix for crashes seen with threaded servers,
e.g. PR 50335.

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

modules/proxy/mod_proxy_http.c

index 8f20378cbf29518782d4f09bcfd8055200cbf659..613f47b5ab083b86091a5a228ea487e81ecfe201 100644 (file)
@@ -1811,6 +1811,10 @@ int ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
         }
     } while (interim_response && (interim_response < AP_MAX_INTERIM_RESPONSES));
 
+    /* We have to cleanup bb brigade, because buckets inserted to it could be
+     * created from scpool and this pool can be freed before this brigade. */
+    apr_brigade_cleanup(bb);
+
     /* See define of AP_MAX_INTERIM_RESPONSES for why */
     if (interim_response >= AP_MAX_INTERIM_RESPONSES) {
         return ap_proxyerror(r, HTTP_BAD_GATEWAY,