You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sh...@apache.org on 2009/12/17 07:17:04 UTC
svn commit: r891546 - /webservices/axis2/trunk/c/src/core/context/conf_ctx.c
Author: shankar
Date: Thu Dec 17 06:17:04 2009
New Revision: 891546
URL: http://svn.apache.org/viewvc?rev=891546&view=rev
Log:
Fixing memory leak
Modified:
webservices/axis2/trunk/c/src/core/context/conf_ctx.c
Modified: webservices/axis2/trunk/c/src/core/context/conf_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/context/conf_ctx.c?rev=891546&r1=891545&r2=891546&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/context/conf_ctx.c (original)
+++ webservices/axis2/trunk/c/src/core/context/conf_ctx.c Thu Dec 17 06:17:04 2009
@@ -429,9 +429,12 @@
axutil_thread_mutex_destroy(conf_ctx->mutex);
}
- AXIS2_FREE(env->allocator, conf_ctx);
+ if(conf_ctx->root_dir)
+ {
+ AXIS2_FREE(env->allocator, conf_ctx->root_dir);
+ }
- return;
+ AXIS2_FREE(env->allocator, conf_ctx);
}
AXIS2_EXTERN axis2_svc_grp_ctx_t *AXIS2_CALL