diff options
author | shankar | 2010-04-05 05:59:47 +0000 |
---|---|---|
committer | shankar | 2010-04-05 05:59:47 +0000 |
commit | 6a4307a3703b0a19abe728266deea5381145dadb (patch) | |
tree | 75b7e9cee6ec090bf111eea892b1cab77d0fa92a /util/src | |
parent | afe578cd8894b9a6cd6c6b65e552448536f02dce (diff) | |
download | axis2c-6a4307a3703b0a19abe728266deea5381145dadb.tar.gz axis2c-6a4307a3703b0a19abe728266deea5381145dadb.tar.bz2 |
Fixing memory leaks
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@930802 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'util/src')
-rw-r--r-- | util/src/thread_pool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/src/thread_pool.c b/util/src/thread_pool.c index cf1078d..2ba7c7c 100644 --- a/util/src/thread_pool.c +++ b/util/src/thread_pool.c @@ -126,6 +126,7 @@ AXIS2_EXTERN void AXIS2_CALL axutil_free_thread_env( struct axutil_env *thread_env) { + axutil_allocator_t * allocator; if(!thread_env) { return; @@ -143,5 +144,7 @@ axutil_free_thread_env( { AXIS2_ERROR_FREE(thread_env->error); } - AXIS2_FREE(thread_env->allocator, thread_env); + allocator = thread_env->allocator; + AXIS2_FREE(allocator, thread_env); + axutil_allocator_free(allocator); } |