]> granicus.if.org Git - apache/commitdiff
We are done with this subrequest (before we even got started...) so
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 6 Aug 2001 18:41:31 +0000 (18:41 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 6 Aug 2001 18:41:31 +0000 (18:41 +0000)
  dump it early.

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

modules/generators/mod_cgi.c

index 183bd5d931a0ab9ccd89e405570d7298fd62eff1..13fc514d0f0e2821d9c8ce7b095cad2bd69d38e2 100644 (file)
@@ -786,15 +786,18 @@ static int include_cgi(char *s, request_rec *r, ap_filter_t *next,
     apr_bucket  *tmp_buck, *tmp2_buck;
 
     if (rr->status != HTTP_OK) {
+        ap_destroy_sub_req(rr);
         return -1;
     }
 
     /* No hardwired path info or query allowed */
 
     if ((rr->path_info && rr->path_info[0]) || rr->args) {
+        ap_destroy_sub_req(rr);
         return -1;
     }
     if (rr->finfo.filetype != APR_REG) {
+        ap_destroy_sub_req(rr);
         return -1;
     }