apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject cvs commit: apr/memory/unix apr_pools.c
Date Thu, 06 Nov 2003 00:43:32 GMT
striker     2003/11/05 16:43:32

  Modified:    memory/unix apr_pools.c
  Log:
  * memory/unix/apr_pools.c
  
    (pool_clear_debug): When there is a child pool present after cleanups
      have been run, we know that a cleanup created a child pool.  This
      results in orphaned pools, so in debug mode, abort().
  
  Revision  Changes    Path
  1.202     +4 -0      apr/memory/unix/apr_pools.c
  
  Index: apr_pools.c
  ===================================================================
  RCS file: /home/cvs/apr/memory/unix/apr_pools.c,v
  retrieving revision 1.201
  retrieving revision 1.202
  diff -u -r1.201 -r1.202
  --- apr_pools.c	30 Oct 2003 11:29:17 -0000	1.201
  +++ apr_pools.c	6 Nov 2003 00:43:32 -0000	1.202
  @@ -1399,6 +1399,10 @@
       run_cleanups(&pool->cleanups);
       pool->cleanups = NULL;
   
  +    /* If new child pools showed up, this is a reason to raise a flag */
  +    if (pool->child)
  +        abort();
  +
       /* Free subprocesses */
       free_proc_chain(pool->subprocesses);
       pool->subprocesses = NULL;
  
  
  

Mime
View raw message