httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0 CHANGES
Date Fri, 06 Sep 2002 01:18:56 GMT
brianp      2002/09/05 18:18:56

  Modified:    modules/http http_protocol.c
               .        CHANGES
  Log:
  Fixed some bucket memory leaks in ap_http_filter()
  Submitted by:	Joe Schaefer <joe+apache@sunstarsys.com>
  
  Revision  Changes    Path
  1.457     +3 -2      httpd-2.0/modules/http/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_protocol.c,v
  retrieving revision 1.456
  retrieving revision 1.457
  diff -u -r1.456 -r1.457
  --- http_protocol.c	5 Sep 2002 06:20:02 -0000	1.456
  +++ http_protocol.c	6 Sep 2002 01:18:55 -0000	1.457
  @@ -904,11 +904,12 @@
                       ctx->remaining = get_chunk_size(line);
                   }
               }
  +            apr_brigade_cleanup(bb);
  +
               /* Detect chunksize error (such as overflow) */
               if (rv != APR_SUCCESS || ctx->remaining < 0) {
                   ctx->remaining = 0; /* Reset it in case we have to
                                        * come back here later */
  -                apr_brigade_cleanup(bb);
                   e = ap_bucket_error_create(HTTP_REQUEST_ENTITY_TOO_LARGE, NULL,
                                              f->r->pool,
                                              f->c->bucket_alloc);
  @@ -969,13 +970,13 @@
                               ctx->remaining = get_chunk_size(line);
                           }
                       }
  +                    apr_brigade_cleanup(bb);
                   }
   
                   /* Detect chunksize error (such as overflow) */
                   if (rv != APR_SUCCESS || ctx->remaining < 0) {
                       ctx->remaining = 0; /* Reset it in case we have to
                                            * come back here later */
  -                    apr_brigade_cleanup(bb);
                       e = ap_bucket_error_create(HTTP_REQUEST_ENTITY_TOO_LARGE,
                                                  NULL, f->r->pool,
                                                  f->c->bucket_alloc);
  
  
  
  1.915     +3 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.914
  retrieving revision 1.915
  diff -u -r1.914 -r1.915
  --- CHANGES	5 Sep 2002 07:31:13 -0000	1.914
  +++ CHANGES	6 Sep 2002 01:18:55 -0000	1.915
  @@ -1,5 +1,8 @@
   Changes with Apache 2.0.41
   
  +  *) Fix some bucket memory leaks in the chunking code
  +     [Joe Schaefer <joe+apache@sunstarsys.com>]
  +
     *) Add ModMimeUsePathInfo directive.  [Justin Erenkrantz]
   
     *) mod_cache: added support for caching streamed responses (proxy,
  
  
  

Mime
View raw message