apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr-util/buckets apr_buckets_mmap.c
Date Wed, 28 Feb 2001 19:37:49 GMT
trawick     01/02/28 11:37:49

  Modified:    buckets  apr_buckets_mmap.c
  Log:
  pass the right value to free() to prevent segfaults and corrupted
  heaps and other nasties
  
  Revision  Changes    Path
  1.32      +1 -1      apr-util/buckets/apr_buckets_mmap.c
  
  Index: apr_buckets_mmap.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_mmap.c,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- apr_buckets_mmap.c	2001/02/28 17:52:43	1.31
  +++ apr_buckets_mmap.c	2001/02/28 19:37:47	1.32
  @@ -76,7 +76,7 @@
   
   static void mmap_destroy(void *data)
   {
  -    apr_bucket_mmap *m;
  +    apr_bucket_mmap *m = data;
   
       if (apr_bucket_shared_destroy(data)) {
           /* XXX: apr_mmap_delete(m->mmap)? */
  
  
  

Mime
View raw message