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/02/28 20:37:49 UTC

cvs commit: apr-util/buckets apr_buckets_mmap.c

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)? */
  
  
  

Re: cvs commit: apr-util/buckets apr_buckets_mmap.c

Posted by Cliff Woolley <cl...@yahoo.com>.
On 28 Feb 2001 trawick@apache.org wrote:

>   pass the right value to free() to prevent segfaults and corrupted
>   heaps and other nasties

Ugghghhh... damn me.  I'm just causing all sorts of problems, aren't I?

<sigh>
--Cliff