httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/buckets ap_buf.c
Date Fri, 21 Jul 2000 22:24:28 GMT
rbb         00/07/21 15:24:28

  Modified:    src/lib/apr/buckets ap_buf.c
  Log:
  Fix a small memory leak in the buckets.  Basically, an extra bucket was
  being created and never inserted into the list, so it was never destroyed.
  Submitted by:	Cliff Woolley <JWOOLLEY@wlu.edu>
  Reviewed by:	Ryan Bloom
  
  Revision  Changes    Path
  1.16      +1 -1      apache-2.0/src/lib/apr/buckets/ap_buf.c
  
  Index: ap_buf.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/buckets/ap_buf.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ap_buf.c	2000/07/20 16:14:24	1.15
  +++ ap_buf.c	2000/07/21 22:24:28	1.16
  @@ -253,12 +253,12 @@
       }
       
       for (k = 0;;) {
  -        r = ap_bucket_rwmem_create();
           x = va_arg(va, const char *);
           if (x == NULL)
               break;
           j = strlen(x);
          
  +        r = ap_bucket_rwmem_create();
           rv = r->insert(r, x, j, &i);
           if (i != j) {
               /* Do we need better error reporting?  */
  
  
  

Mime
View raw message