summaryrefslogtreecommitdiff
path: root/memory
diff options
context:
space:
mode:
authorpquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68>2005-08-27 01:17:01 +0000
committerpquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68>2005-08-27 01:17:01 +0000
commitd3827ff85a3955350fcc936ea75d2b7c556b6aeb (patch)
treed299a05c35bdddb9bd28abda510223f07df1ebec /memory
parent03d047050984c5427488fe026d278516b27fbe77 (diff)
downloadlibapr-d3827ff85a3955350fcc936ea75d2b7c556b6aeb.tar.gz
Decrement apr_pools_initialized in the debug version of apr_pool_termiante, making it match the non-debug version.
Submitted By: Henry Jen <henryjen ztune.net> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@240370 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r--memory/unix/apr_pools.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c
index 291abc3d6..13c60a870 100644
--- a/memory/unix/apr_pools.c
+++ b/memory/unix/apr_pools.c
@@ -1264,7 +1264,8 @@ APR_DECLARE(void) apr_pool_terminate(void)
if (!apr_pools_initialized)
return;
- apr_pools_initialized = 0;
+ if (--apr_pools_initialized)
+ return;
apr_pool_destroy(global_pool); /* This will also destroy the mutex */
global_pool = NULL;