diff options
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); } |