axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapSerializer.cpp
Date Sat, 27 Aug 2005 09:03:36 GMT
samisa      2005/08/27 02:03:36

  Modified:    c/src/soap SoapSerializer.cpp
  Log:
  Fixed the exception related memory leak
  AXISCPP-815
  
  Revision  Changes    Path
  1.140     +1 -5      ws-axis/c/src/soap/SoapSerializer.cpp
  
  Index: SoapSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapSerializer.cpp,v
  retrieving revision 1.139
  retrieving revision 1.140
  diff -u -r1.139 -r1.140
  --- SoapSerializer.cpp	26 Aug 2005 03:16:18 -0000	1.139
  +++ SoapSerializer.cpp	27 Aug 2005 09:03:36 -0000	1.140
  @@ -362,11 +362,7 @@
   
   			if( (iStatus = m_pSoapEnvelope->serialize( *this, (SOAP_VERSION) m_iSoapVersion))
== AXIS_FAIL)
   			{
  -				char * pszMsg = new char[128];
  -
  -				strcpy( pszMsg, "The SOAP serialiser has detected errors in the header or envelope.
 Transmission has been aborted.");
  -
  -				throw AxisSoapException( CLIENT_SOAP_MESSAGE_INCOMPLETE, pszMsg);
  +				throw AxisSoapException( CLIENT_SOAP_MESSAGE_INCOMPLETE, "The SOAP serializer has detected
errors in the header or envelope. Transmission has been aborted.");
   			}
   
   			if( checkAttachmentAvailability())
  
  
  

Mime
View raw message