httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_cgid.c
Date Mon, 06 Aug 2001 18:43:30 GMT
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) {
  
  
  

Mime
View raw message