summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorGravatar shankar2010-04-05 05:59:47 +0000
committerGravatar shankar2010-04-05 05:59:47 +0000
commit6a4307a3703b0a19abe728266deea5381145dadb (patch)
tree75b7e9cee6ec090bf111eea892b1cab77d0fa92a /util
parentafe578cd8894b9a6cd6c6b65e552448536f02dce (diff)
downloadaxis2c-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')
-rw-r--r--util/src/thread_pool.c5
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);
}