apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject cvs commit: apr/memory/unix apr_sms.c
Date Wed, 20 Jun 2001 15:52:18 GMT
dreid       01/06/20 08:52:18

  Modified:    memory/unix apr_sms.c
  Log:
  It's not an error if we don't have a free function.
  
  Submitted by:    Sander Striker <striker@samba-tng.org>
  Reviewed by:     David Reid <dreid@apache.org>
  
  Revision  Changes    Path
  1.25      +7 -1      apr/memory/unix/apr_sms.c
  
  Index: apr_sms.c
  ===================================================================
  RCS file: /home/cvs/apr/memory/unix/apr_sms.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- apr_sms.c	2001/06/18 20:14:36	1.24
  +++ apr_sms.c	2001/06/20 15:52:15	1.25
  @@ -130,7 +130,13 @@
       if (sms->free_fn)
           return sms->free_fn(sms, mem);  
   
  -    return APR_ENOTIMPL;
  +    /*
  +     * If there is no free_fn, this sms is a tracking memory
  +     * system by definition.  In other words, it is ok
  +     * to return APR_SUCCESS because the memory will be
  +     * free()d by the reset or destroy.
  +     */
  +    return APR_SUCCESS;
   }
   
   /*
  
  
  

Mime
View raw message