ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdinap...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapDeSerializer.cpp
Date Tue, 14 Jun 2005 07:46:57 GMT
cdinapala    2005/06/14 00:46:57

  Modified:    c/src/soap SoapDeSerializer.cpp
  Log:
  Removed “malloc” code from SoapDeSerializer.cpp to solve Issue AXISCPP-640.
  
  Revision  Changes    Path
  1.167     +10 -3     ws-axis/c/src/soap/SoapDeSerializer.cpp
  
  Index: SoapDeSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapDeSerializer.cpp,v
  retrieving revision 1.166
  retrieving revision 1.167
  diff -u -r1.166 -r1.167
  --- SoapDeSerializer.cpp	9 Jun 2005 06:25:50 -0000	1.166
  +++ SoapDeSerializer.cpp	14 Jun 2005 07:46:57 -0000	1.167
  @@ -68,6 +68,7 @@
   
   #include <list>
   #include <iostream>
  +AxisChar * pBodyContent;
   
   AXIS_CPP_NAMESPACE_START
   #define INITIAL_ARRAY_SIZE 1
  @@ -91,6 +92,8 @@
   	XMLParserFactory::destroyParserObject (m_pParser);
   	//delete m_pParser;
       }
  +	if(pBodyContent)
  +		delete pBodyContent;
   }
   
   int
  @@ -2476,8 +2479,10 @@
   {
       /* TODO */
   
  -    AxisChar *
  -	pBodyContent = (AxisChar *) malloc (1000);
  +    //AxisChar *
  +	//pBodyContent = (AxisChar *) malloc (1000);
  +	//Chinthana:Remove malloc
  +	pBodyContent = new AxisChar[1000];
       pBodyContent[0] = '\0';
   
       m_pNode = m_pParser->next ();
  @@ -2506,7 +2511,9 @@
   AxisChar *
   SoapDeSerializer::getBodyAsChar ()
   {
  -    AxisChar *pBodyContent = (AxisChar *) malloc (1000);
  +    //AxisChar *pBodyContent = (AxisChar *) malloc (1000);
  +	//Chinthana:Remove malloc
  +	pBodyContent = new AxisChar[1000];
       pBodyContent[0] = '\0';
   
       m_pNode = m_pParser->next ();
  
  
  

Mime
View raw message