]> granicus.if.org Git - apache/commitdiff
All error handling paths of this function call 'apr_brigade_destroy()' , except this...
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 27 May 2018 20:48:00 +0000 (20:48 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 27 May 2018 20:48:00 +0000 (20:48 +0000)
So add it here too.

Probably spotted with the help of the Coccinelle software (Thx Julia for the patch and for Coccinelle)

See PR 53016

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

modules/proxy/mod_proxy_ajp.c

index 843f3995ed92ac63517cc6124e4770cd7bcc12c7..3ffa1b554de3eb108890c14972a8f106781dd925 100644 (file)
@@ -324,6 +324,7 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
              * Close it to clean things up.
              */
             conn->close = 1;
+            apr_brigade_destroy(input_brigade);
             return HTTP_BAD_REQUEST;
         }
     }