axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdinap...@apache.org
Subject svn commit: r293582 - in /webservices/axis/trunk/c/src/server: apache/ApacheTransport.cpp apache2/Apache2Transport.cpp
Date Tue, 04 Oct 2005 10:48:06 GMT
Author: cdinapala
Date: Tue Oct  4 03:47:40 2005
New Revision: 293582

URL: http://svn.apache.org/viewcvs?rev=293582&view=rev
Log:
Fixed some memory leaks.
deleted the m_pBuffers in destructor.

Modified:
    webservices/axis/trunk/c/src/server/apache/ApacheTransport.cpp
    webservices/axis/trunk/c/src/server/apache2/Apache2Transport.cpp

Modified: webservices/axis/trunk/c/src/server/apache/ApacheTransport.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/server/apache/ApacheTransport.cpp?rev=293582&r1=293581&r2=293582&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/server/apache/ApacheTransport.cpp (original)
+++ webservices/axis/trunk/c/src/server/apache/ApacheTransport.cpp Tue Oct  4 03:47:40 2005
@@ -47,7 +47,11 @@
 
 ApacheTransport::~ApacheTransport()
 {
-
+		if(m_pBuffers)
+	{
+		delete [] m_pBuffers;
+		m_pBuffers = NULL;
+	}
 }
 
 AXIS_TRANSPORT_STATUS ApacheTransport::sendBytes(const char* pcSendBuffer, const void* pBufferId)

Modified: webservices/axis/trunk/c/src/server/apache2/Apache2Transport.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/server/apache2/Apache2Transport.cpp?rev=293582&r1=293581&r2=293582&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/server/apache2/Apache2Transport.cpp (original)
+++ webservices/axis/trunk/c/src/server/apache2/Apache2Transport.cpp Tue Oct  4 03:47:40 2005
@@ -41,6 +41,11 @@
 
 Apache2Transport::~Apache2Transport()
 {
+	if(m_pBuffers)
+	{
+		delete [] m_pBuffers;
+		m_pBuffers = NULL;
+	}
 
 }
 



Mime
View raw message