httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_mem_cache.c
Date Wed, 05 Jun 2002 16:31:37 GMT
stoddard    2002/06/05 09:31:37

  Modified:    modules/experimental mod_mem_cache.c
  Log:
  Fix a storage leak introduced by my patch last night. Free the req_hdrs on cleanup.
  
  Submitted by: Jean-Jacques Clar
  
  Revision  Changes    Path
  1.65      +5 -0      httpd-2.0/modules/experimental/mod_mem_cache.c
  
  Index: mod_mem_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_mem_cache.c,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- mod_mem_cache.c	5 Jun 2002 03:45:13 -0000	1.64
  +++ mod_mem_cache.c	5 Jun 2002 16:31:37 -0000	1.65
  @@ -181,6 +181,11 @@
                   free(mobj->notes[0].hdr);
               free(mobj->notes);
           }
  +        if (mobj->req_hdrs) {
  +            if (mobj->req_hdrs[0].hdr)
  +                free(mobj->req_hdrs[0].hdr);
  +            free(mobj->req_hdrs);
  +        }
           free(mobj);
       }
       return;
  
  
  

Mime
View raw message