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 sa...@apache.org on 2006/03/24 08:51:28 UTC
svn commit: r388442 - in
/webservices/axis2/trunk/c/modules/core/description: svc.c
transport_in_desc.c transport_out_desc.c
Author: samisa
Date: Thu Mar 23 23:51:26 2006
New Revision: 388442
URL: http://svn.apache.org/viewcvs?rev=388442&view=rev
Log:
More memory leak fixes
Modified:
webservices/axis2/trunk/c/modules/core/description/svc.c
webservices/axis2/trunk/c/modules/core/description/transport_in_desc.c
webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c
Modified: webservices/axis2/trunk/c/modules/core/description/svc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/svc.c?rev=388442&r1=388441&r2=388442&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/svc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/svc.c Thu Mar 23 23:51:26 2006
@@ -530,6 +530,12 @@
AXIS2_WSDL_SVC_FREE(svc->wsdl_svc, env);
svc->wsdl_svc = NULL;
}
+
+ if(svc_impl->filename)
+ {
+ AXIS2_FREE((*env)->allocator, svc_impl->filename);
+ svc_impl->filename = NULL;
+ }
svc_impl->parent = NULL;
Modified: webservices/axis2/trunk/c/modules/core/description/transport_in_desc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/transport_in_desc.c?rev=388442&r1=388441&r2=388442&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/transport_in_desc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/transport_in_desc.c Thu Mar 23 23:51:26 2006
@@ -226,6 +226,12 @@
transport_in_impl = AXIS2_INTF_TO_IMPL(transport_in);
+ if (transport_in_impl->recv)
+ {
+ AXIS2_TRANSPORT_RECEIVER_FREE(transport_in_impl->recv, env);
+ transport_in_impl->recv = NULL;
+ }
+
if(NULL != transport_in->ops)
{
AXIS2_FREE((*env)->allocator, transport_in->ops);
@@ -268,12 +274,6 @@
transport_in_impl->faultphase = NULL;
}
- if (transport_in_impl->recv)
- {
- AXIS2_TRANSPORT_RECEIVER_FREE(transport_in_impl->recv, env);
- transport_in_impl->recv = NULL;
- }
-
AXIS2_FREE((*env)->allocator, transport_in_impl);
return AXIS2_SUCCESS;
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=388442&r1=388441&r2=388442&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 23:51:26 2006
@@ -231,6 +231,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;
+ }
+
if(NULL != transport_out->ops)
{
AXIS2_FREE((*env)->allocator, transport_out->ops);
@@ -271,12 +277,6 @@
{
AXIS2_FLOW_FREE(transport_out_impl->faultphase, env);
transport_out_impl->faultphase = 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);