You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Samisa Abeysinghe <sa...@yahoo.com> on 2004/04/14 05:23:23 UTC

Terminating Xerces - patch

Hi All,
    I found that the Xerces platform has not been terminated gracefully in the code and hence
caused memory leaks in the client.
	(May be the same is true for server side but I did not test)
	Please update Axis.cpp and Call.cpp. The patch is given below.
Thanks,
Samisa...
	
	Here is the patch
	
diff -u ../../original/ws-axis/c/src/engine/client/Call.cpp src/engine/client/Call.cpp
--- ../../original/ws-axis/c/src/engine/client/Call.cpp 2004-04-09 11:48:57.000000000 +0600
+++ src/engine/client/Call.cpp  2004-04-12 15:20:28.000000000 +0600
@@ -51,6 +51,7 @@
             free (m_Soap.so.http->uri_path);
             delete m_Soap.so.http;
     }
+    uninitialize_module();
 }

 int Call::SetEndpointURI (const char* pchEndpointURI)

diff -u ../../original/ws-axis/c/src/engine/Axis.cpp src/engine/Axis.cpp
--- ../../original/ws-axis/c/src/engine/Axis.cpp        2004-04-08 18:07:54.000000000 +0600
+++ src/engine/Axis.cpp 2004-04-13 11:22:27.000000000 +0600
@@ -316,8 +316,11 @@

 extern "C" int uninitialize_module ()
 {
-    // XMLPlatformUtils::Terminate();
+#ifdef USE_XERCES_PARSER
+    XMLPlatformUtils::Terminate ();
+#endif
     ModuleUnInitialize ();
     return AXIS_SUCCESS;
 }



	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html