apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: apr-util/misc apr_rmm.c
Date Thu, 14 Mar 2002 23:46:29 GMT
dougm       02/03/14 15:46:29

  Modified:    misc     apr_rmm.c
  Log:
  Submitted by:	arron bannert
  apr_rmm_realloc() needs to call apr_rmm_free() with the old block.
  
  Revision  Changes    Path
  1.10      +2 -1      apr-util/misc/apr_rmm.c
  
  Index: apr_rmm.c
  ===================================================================
  RCS file: /home/cvs/apr-util/misc/apr_rmm.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- apr_rmm.c	14 Mar 2002 23:18:56 -0000	1.9
  +++ apr_rmm.c	14 Mar 2002 23:46:29 -0000	1.10
  @@ -388,8 +388,9 @@
   
       if (old >= 0) {
           memcpy(apr_rmm_addr_get(rmm, this),
  -               apr_rmm_addr_get(rmm, old),reqsize);
  +               apr_rmm_addr_get(rmm, old), reqsize);
           move_block(rmm, old, 1);
  +        apr_rmm_free(rmm, old);
       }
   
       return this;
  
  
  

Mime
View raw message