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 ka...@apache.org on 2006/09/14 06:17:50 UTC
svn commit: r443222 - in
/webservices/axis2/trunk/c/modules/core/description: desc.c msg.c
Author: kaushalye
Date: Wed Sep 13 21:17:49 2006
New Revision: 443222
URL: http://svn.apache.org/viewvc?view=rev&rev=443222
Log:
Applying patch for memory leaks fixed - JIRA AXIS2C-253
Modified:
webservices/axis2/trunk/c/modules/core/description/desc.c
webservices/axis2/trunk/c/modules/core/description/msg.c
Modified: webservices/axis2/trunk/c/modules/core/description/desc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/desc.c?view=diff&rev=443222&r1=443221&r2=443222
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/desc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/desc.c Wed Sep 13 21:17:49 2006
@@ -16,7 +16,7 @@
#include <axis2_desc.h>
#include <axis2_property.h>
-
+#include <axis2_msg.h>
/**
* @brief Message struct impl
* Axis2 Messages
@@ -156,6 +156,21 @@
if(NULL != desc_impl->children)
{
+ axis2_hash_index_t *hi = NULL;
+ void *val = NULL;
+
+ for (hi = axis2_hash_first(desc_impl->children, env); hi;
+ hi = axis2_hash_next(env, hi))
+ {
+ axis2_hash_this(hi, NULL, NULL, &val);
+
+ if (val)
+ {
+ AXIS2_MSG_FREE((axis2_msg_t *)val, env);
+ val = NULL;
+ }
+ }
+
axis2_hash_free(desc_impl->children, env);
desc_impl->children = NULL;
}
Modified: webservices/axis2/trunk/c/modules/core/description/msg.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/msg.c?view=diff&rev=443222&r1=443221&r2=443222
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/msg.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/msg.c Wed Sep 13 21:17:49 2006
@@ -220,7 +220,7 @@
for (i = 0; i < size; i++)
{
axis2_phase_t *phase = NULL;
- phase = AXIS2_ARRAY_LIST_GET(msg_impl->flow, env, i);
+ phase = (axis2_phase_t *) (AXIS2_ARRAY_LIST_GET(msg_impl->flow, env, i));
if (phase)
{
AXIS2_PHASE_FREE (phase, env);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org