ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r389030 - in /webservices/axis2/trunk/c/modules/core: addr/msg_info_headers.c util/core_utils.c
Date Mon, 27 Mar 2006 06:22:34 GMT
Author: samisa
Date: Sun Mar 26 22:22:32 2006
New Revision: 389030

URL: http://svn.apache.org/viewcvs?rev=389030&view=rev
Log:
Fixed the last pending leak

Modified:
    webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c
    webservices/axis2/trunk/c/modules/core/util/core_utils.c

Modified: webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c?rev=389030&r1=389029&r2=389030&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c (original)
+++ webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c Sun Mar 26 22:22:32 2006
@@ -259,8 +259,20 @@
                                axis2_env_t **env, 
                                axis2_endpoint_ref_t *to) 
 {
+    axis2_msg_info_headers_impl_t *msg_info_headers_impl = NULL;
+    
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_INTF_TO_IMPL(msg_info_headers)->to = to;
+    
+    msg_info_headers_impl = AXIS2_INTF_TO_IMPL(msg_info_headers);
+    
+    if (msg_info_headers_impl->to && to) /* if the incomming to is NULL, 
+                                            we consider that to be a reset,
+                                            so dont free */
+    {
+        AXIS2_ENDPOINT_REF_FREE(msg_info_headers_impl->to, env);
+        msg_info_headers_impl->to = NULL;
+    }
+    msg_info_headers_impl->to = to;
     return AXIS2_SUCCESS;
 }
 

Modified: webservices/axis2/trunk/c/modules/core/util/core_utils.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/util/core_utils.c?rev=389030&r1=389029&r2=389030&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/util/core_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/util/core_utils.c Sun Mar 26 22:22:32 2006
@@ -163,6 +163,7 @@
         AXIS2_MSG_INFO_HEADERS_SET_TO(msg_info_headers, env, NULL);
         AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO(msg_info_headers, env, NULL);
         AXIS2_MSG_INFO_HEADERS_SET_FROM(msg_info_headers, env, NULL);
+        AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO(msg_info_headers, env, NULL);
     } 
     
     AXIS2_MSG_CTX_SET_OP_CTX(out_msg_ctx, env, NULL);



Mime
View raw message