axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r381290 - in /webservices/axis2/trunk/c: modules/core/clientapi/mep_client.c modules/core/deployment/repos_listener.c samples/client/echo/echo_client.c
Date Mon, 27 Feb 2006 08:48:12 GMT
Author: samisa
Date: Mon Feb 27 00:48:11 2006
New Revision: 381290

URL: http://svn.apache.org/viewcvs?rev=381290&view=rev
Log:
Fixed some more memory leaks

Modified:
    webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
    webservices/axis2/trunk/c/modules/core/deployment/repos_listener.c
    webservices/axis2/trunk/c/samples/client/echo/echo_client.c

Modified: webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c?rev=381290&r1=381289&r2=381290&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c Mon Feb 27 00:48:11 2006
@@ -266,8 +266,11 @@
                 transport_out_desc = AXIS2_CONF_GET_TRANSPORT_OUT(conf, env, qname);
             }
         }
-        
+       
+        AXIS2_FREE((*env)->allocator, transport);
+        transport = NULL;
         AXIS2_QNAME_FREE(qname, env);
+        qname = NULL;
         return transport_out_desc;        
 
     } 

Modified: webservices/axis2/trunk/c/modules/core/deployment/repos_listener.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/repos_listener.c?rev=381290&r1=381289&r2=381290&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/repos_listener.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/repos_listener.c Mon Feb 27 00:48:11
2006
@@ -208,7 +208,9 @@
         repos_listener->ops = NULL;
     }
     
-    
+    AXIS2_FREE((*env)->allocator, listener_impl);
+    listener_impl = NULL;
+
 	return AXIS2_SUCCESS;
 }
 

Modified: webservices/axis2/trunk/c/samples/client/echo/echo_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/client/echo/echo_client.c?rev=381290&r1=381289&r2=381290&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo_client.c Mon Feb 27 00:48:11 2006
@@ -108,10 +108,10 @@
         printf("echo stub invoke failed!\n");
     }
     
-    /*if (node)
+    if (node)
     {
         AXIS2_OM_NODE_FREE_TREE(node, &env);
-    }*/
+    }
     if (stub)
     {
         AXIS2_STUB_FREE(stub, &env);
@@ -148,6 +148,9 @@
     AXIS2_OM_NODE_SERIALIZE(echo_om_node, env, om_output);
     buffer = AXIS2_XML_WRITER_GET_XML(xml_writer, env);         
     printf("\nSending OM node in XML : %s \n",  buffer); 
+
+    AXIS2_OM_OUTPUT_FREE(om_output, env);
+    AXIS2_FREE((*env)->allocator, buffer);
 
     return echo_om_node;
 }



Mime
View raw message