You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ma...@apache.org on 2009/01/06 11:07:24 UTC
svn commit: r731902 - /webservices/axis2/trunk/c/src/core/description/desc.c
Author: manjula
Date: Tue Jan 6 02:07:21 2009
New Revision: 731902
URL: http://svn.apache.org/viewvc?rev=731902&view=rev
Log:
Fixing Axis2C-1313
Modified:
webservices/axis2/trunk/c/src/core/description/desc.c
Modified: webservices/axis2/trunk/c/src/core/description/desc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/description/desc.c?rev=731902&r1=731901&r2=731902&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/description/desc.c (original)
+++ webservices/axis2/trunk/c/src/core/description/desc.c Tue Jan 6 02:07:21 2009
@@ -18,8 +18,8 @@
#include <axis2_desc.h>
#include <axutil_property.h>
-#include <axis2_msg.h>
#include <axis2_policy_include.h>
+#include <axis2_msg.h>
struct axis2_desc
{
@@ -168,11 +168,17 @@
const axis2_desc_t * desc,
const axutil_env_t * env,
const axis2_char_t * key,
- const void *child)
+ const axis2_msg_t *child)
{
if (desc->children)
{
- axutil_hash_set(desc->children, key, AXIS2_HASH_KEY_STRING, child);
+ axis2_msg_t* msg = (axis2_msg_t *) axutil_hash_get(desc->children, key, AXIS2_HASH_KEY_STRING);
+ if ( msg != NULL )
+ {
+ axis2_msg_free(msg, env);
+ msg = NULL;
+ }
+ axutil_hash_set(desc->children, key, AXIS2_HASH_KEY_STRING, (void *)child);
return AXIS2_SUCCESS;
}
return AXIS2_FAILURE;