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 sa...@apache.org on 2006/03/24 00:15:52 UTC
svn commit: r388291 -
/webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c
Author: samisa
Date: Thu Mar 23 15:15:46 2006
New Revision: 388291
URL: http://svn.apache.org/viewcvs?rev=388291&view=rev
Log:
Memory cleaning of transport sender added in
Modified:
webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c
Modified: webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c?rev=388291&r1=388290&r2=388291&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c Thu Mar 23 15:15:46 2006
@@ -273,7 +273,11 @@
transport_out_impl->faultphase = NULL;
}
- transport_out_impl->sender = NULL;
+ if (transport_out_impl->sender)
+ {
+ AXIS2_TRANSPORT_SENDER_FREE(transport_out_impl->sender, env);
+ transport_out_impl->sender = NULL;
+ }
AXIS2_FREE((*env)->allocator, transport_out_impl);
@@ -378,6 +382,12 @@
transport_out_impl = AXIS2_INTF_TO_IMPL(transport_out);
+ if (transport_out_impl->sender)
+ {
+ AXIS2_TRANSPORT_SENDER_FREE(transport_out_impl->sender, env);
+ transport_out_impl->sender = NULL;
+ }
+
transport_out_impl->sender = sender;
return AXIS2_SUCCESS;
}