diff options
author | Stefan Fritsch <sf@apache.org> | 2010-07-27 22:09:45 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2010-07-27 22:09:45 +0000 |
commit | 443247b17081cb00b0e7f2f688889417cb45871f (patch) | |
tree | 1cb6ddc24a0845e85f254eec9056103e26b73d0b /memory/unix | |
parent | 473c87316e7cf23eadb438189d2932b86ac8afae (diff) | |
download | apr-443247b17081cb00b0e7f2f688889417cb45871f.tar.gz |
Fix various issues found by cppcheck
- error handling issues
- use of uninitialized data
- null pointer dereference
- unused variables
- memory/fd leaks
- broken code in threadproc/beos/proc.c
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@979891 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory/unix')
-rw-r--r-- | memory/unix/apr_pools.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c index d3c81fc34..08b43fba0 100644 --- a/memory/unix/apr_pools.c +++ b/memory/unix/apr_pools.c @@ -1427,6 +1427,7 @@ static void *pool_alloc(apr_pool_t *pool, apr_size_t size) node = pool->nodes; if (node == NULL || node->index == 64) { if ((node = malloc(SIZEOF_DEBUG_NODE_T)) == NULL) { + free(mem); if (pool->abort_fn) pool->abort_fn(APR_ENOMEM); |