You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2001/03/01 00:46:54 UTC

cvs commit: apr-util/buckets apr_buckets_simple.c

trawick     01/02/28 15:46:54

  Modified:    buckets  apr_buckets_simple.c
  Log:
  Don't do free() on the data when destroying immortal and transient
  buckets.
  
  This should fix some heap corruption seen in Apache.
  
  Revision  Changes    Path
  1.25      +2 -2      apr-util/buckets/apr_buckets_simple.c
  
  Index: apr_buckets_simple.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_simple.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- apr_buckets_simple.c	2001/02/28 02:19:02	1.24
  +++ apr_buckets_simple.c	2001/02/28 23:46:53	1.25
  @@ -151,7 +151,7 @@
   
   const apr_bucket_type_t apr_bucket_type_immortal = {
       "IMMORTAL", 5,
  -    free,
  +    apr_bucket_destroy_notimpl,
       simple_read,
       apr_bucket_setaside_notimpl,
       apr_bucket_simple_split,
  @@ -160,7 +160,7 @@
   
   APU_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_transient = {
       "TRANSIENT", 5,
  -    free, 
  +    apr_bucket_destroy_notimpl, 
       simple_read,
       transient_setaside,
       apr_bucket_simple_split,