axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r891546 - /webservices/axis2/trunk/c/src/core/context/conf_ctx.c
Date Thu, 17 Dec 2009 06:17:04 GMT
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



Mime
View raw message