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/engine/client Call.cpp
Date Wed, 01 Sep 2004 09:10:19 GMT
samisa      2004/09/01 02:10:19

  Modified:    c/src/transport/axis AxisTransport.cpp
               c/include/axis/client Call.h
               c/src/engine/client Call.cpp
  Log:
  Fixed memory leaks caused by set end point methods by freeing allocated memory in destructors.
  
  Revision  Changes    Path
  1.34      +2 -0      ws-axis/c/src/transport/axis/AxisTransport.cpp
  
  Index: AxisTransport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis/AxisTransport.cpp,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- AxisTransport.cpp	30 Jul 2004 02:35:16 -0000	1.33
  +++ AxisTransport.cpp	1 Sep 2004 09:10:18 -0000	1.34
  @@ -66,6 +66,8 @@
           delete m_pReceiver;
       if(m_pHttpTransport)
           delete m_pHttpTransport;
  +    if(m_pcEndpointUri)
  +        free(m_pcEndpointUri);
   }
   
   int AxisTransport::openConnection()
  
  
  
  1.27      +1 -1      ws-axis/c/include/axis/client/Call.h
  
  Index: Call.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/include/axis/client/Call.h,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- Call.h	20 Aug 2004 09:40:11 -0000	1.26
  +++ Call.h	1 Sep 2004 09:10:18 -0000	1.27
  @@ -808,7 +808,7 @@
       MessageData* m_pMsgData;
       SoapSerializer* m_pIWSSZ;
       SoapDeSerializer* m_pIWSDZ;
  -    const char* m_pcEndPointUri;
  +    char* m_pcEndPointUri;
       AXIS_PROTOCOL_TYPE m_nTransportType;
       /*
          Transport object
  
  
  
  1.56      +2 -1      ws-axis/c/src/engine/client/Call.cpp
  
  Index: Call.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/engine/client/Call.cpp,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- Call.cpp	20 Aug 2004 09:40:11 -0000	1.55
  +++ Call.cpp	1 Sep 2004 09:10:19 -0000	1.56
  @@ -60,7 +60,8 @@
   
   Call::~Call ()
   {
  -    uninitialize_module();	
  +    uninitialize_module();
  +    free(m_pcEndPointUri);
   }
   
   int Call::setEndpointURI (const char* pchEndpointURI)
  
  
  

Mime
View raw message