diff options
author | pquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68> | 2005-08-27 01:17:01 +0000 |
---|---|---|
committer | pquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68> | 2005-08-27 01:17:01 +0000 |
commit | d3827ff85a3955350fcc936ea75d2b7c556b6aeb (patch) | |
tree | d299a05c35bdddb9bd28abda510223f07df1ebec /memory | |
parent | 03d047050984c5427488fe026d278516b27fbe77 (diff) | |
download | libapr-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.c | 3 |
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; |