You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2001/08/06 20:43:30 UTC

cvs commit: httpd-2.0/modules/generators mod_cgid.c

wrowe       01/08/06 11:43:30

  Modified:    modules/generators mod_cgid.c
  Log:
    Same cleanups as applied to mod_cgi, falling out of scope != destruction
    in plain ol' C.
  
  Revision  Changes    Path
  1.89      +4 -0      httpd-2.0/modules/generators/mod_cgid.c
  
  Index: mod_cgid.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgid.c,v
  retrieving revision 1.88
  retrieving revision 1.89
  diff -u -r1.88 -r1.89
  --- mod_cgid.c	2001/07/30 16:18:05	1.88
  +++ mod_cgid.c	2001/08/06 18:43:30	1.89
  @@ -1052,15 +1052,18 @@
       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;
       }
   
  @@ -1124,6 +1127,7 @@
               apr_table_setn(e, "PATH_TRANSLATED",
                              apr_pstrcat(r->pool, pa_req->filename, pa_req->path_info, NULL));
           }
  +        ap_destroy_sub_req(pa_req);
       }
   
       if (r->args) {