ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r385984 - /webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c
Date Wed, 15 Mar 2006 07:09:18 GMT
Author: samisa
Date: Tue Mar 14 23:09:05 2006
New Revision: 385984

URL: http://svn.apache.org/viewcvs?rev=385984&view=rev
Log:
fixed memory leak

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c?rev=385984&r1=385983&r2=385984&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c Tue
Mar 14 23:09:05 2006
@@ -160,6 +160,12 @@
         AXIS2_OM_OUTPUT_FREE(sender_impl->om_output, env);
         sender_impl->om_output = NULL;
     }*/
+
+    if (sender_impl->client)
+    {
+        AXIS2_HTTP_CLIENT_FREE(sender_impl->client, env);
+        sender_impl->client = NULL;
+    }
     
     if(NULL != sender->ops)
         AXIS2_FREE((*env)->allocator, sender->ops);
@@ -201,11 +207,19 @@
 	{
 		return AXIS2_FAILURE;
 	}
+    
+    if (sender_impl->client)
+    {
+        AXIS2_HTTP_CLIENT_FREE(sender_impl->client, env);
+        sender_impl->client = NULL;
+    }
+    
 	sender_impl->client = axis2_http_client_create(env, url);
 	if(NULL == sender_impl->client)
 	{
 		return AXIS2_FAILURE;
 	}
+
 	if(NULL == sender_impl->om_output)
 	{
 		AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NULL_OM_OUTPUT, 



Mime
View raw message