From 6a4307a3703b0a19abe728266deea5381145dadb Mon Sep 17 00:00:00 2001 From: shankar Date: Mon, 5 Apr 2010 05:59:47 +0000 Subject: Fixing memory leaks git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@930802 13f79535-47bb-0310-9956-ffa450edef68 --- util/src/thread_pool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'util/src') 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); } -- cgit v1.1-32-gdbae