You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by st...@apache.org on 2003/11/06 01:43:32 UTC

cvs commit: apr/memory/unix apr_pools.c

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;