You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/01/21 16:17:19 UTC

cvs commit: ws-axis/c/src/soap/xsd AnyURI.cpp Base64Binary.cpp HexBinary.cpp NOTATION.cpp String.cpp XSD_QName.cpp

dicka       2005/01/21 07:17:19

  Modified:    c/src/soap/xsd AnyURI.cpp Base64Binary.cpp HexBinary.cpp
                        NOTATION.cpp String.cpp XSD_QName.cpp
  Log:
  Clean up some memory when throwing exception.
  
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.5       +2 -0      ws-axis/c/src/soap/xsd/AnyURI.cpp
  
  Index: AnyURI.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/AnyURI.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AnyURI.cpp	21 Jan 2005 15:06:56 -0000	1.4
  +++ AnyURI.cpp	21 Jan 2005 15:17:19 -0000	1.5
  @@ -32,6 +32,7 @@
                   sprintf(length, "%d", strlen(value));
                   exceptionMessage += length;
                   exceptionMessage += ".";
  +                delete [] length;
                   
                   throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                       const_cast<AxisChar*>(exceptionMessage.c_str()));
  @@ -53,6 +54,7 @@
                   sprintf(length, "%d", strlen(value));
                   exceptionMessage += length;
                   exceptionMessage += ".";
  +                delete [] length;
                   
                   throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                       const_cast<AxisChar*>(exceptionMessage.c_str()));
  
  
  
  1.7       +2 -0      ws-axis/c/src/soap/xsd/Base64Binary.cpp
  
  Index: Base64Binary.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/Base64Binary.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Base64Binary.cpp	21 Jan 2005 15:06:56 -0000	1.6
  +++ Base64Binary.cpp	21 Jan 2005 15:17:19 -0000	1.7
  @@ -41,6 +41,7 @@
                   sprintf(length, "%d", value->__size);
                   exceptionMessage += length;
                   exceptionMessage += ".";
  +                delete [] length;
                   
                   throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                       const_cast<AxisChar*>(exceptionMessage.c_str()));
  @@ -63,6 +64,7 @@
                   sprintf(length, "%d", value->__size);
                   exceptionMessage += length;
                   exceptionMessage += ".";
  +                delete [] length;
                   
                   throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                       const_cast<AxisChar*>(exceptionMessage.c_str()));
  
  
  
  1.9       +2 -0      ws-axis/c/src/soap/xsd/HexBinary.cpp
  
  Index: HexBinary.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/HexBinary.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HexBinary.cpp	21 Jan 2005 15:06:56 -0000	1.8
  +++ HexBinary.cpp	21 Jan 2005 15:17:19 -0000	1.9
  @@ -41,6 +41,7 @@
                   sprintf(length, "%d", value->__size);
                   exceptionMessage += length;
                   exceptionMessage += ".";
  +                delete [] length;
                   
                   throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                       const_cast<AxisChar*>(exceptionMessage.c_str()));
  @@ -62,6 +63,7 @@
                   sprintf(length, "%d", value->__size);
                   exceptionMessage += length;
                   exceptionMessage += ".";
  +                delete [] length;
                   
                   throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                       const_cast<AxisChar*>(exceptionMessage.c_str()));
  
  
  
  1.5       +2 -0      ws-axis/c/src/soap/xsd/NOTATION.cpp
  
  Index: NOTATION.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/NOTATION.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- NOTATION.cpp	21 Jan 2005 15:06:56 -0000	1.4
  +++ NOTATION.cpp	21 Jan 2005 15:17:19 -0000	1.5
  @@ -32,6 +32,7 @@
               sprintf(length, "%d", strlen(value));
               exceptionMessage += length;
               exceptionMessage += ".";
  +            delete [] length;
               
               throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                   const_cast<AxisChar*>(exceptionMessage.c_str()));
  @@ -53,6 +54,7 @@
               sprintf(length, "%d", strlen(value));
               exceptionMessage += length;
               exceptionMessage += ".";
  +            delete [] length;
               
               throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                   const_cast<AxisChar*>(exceptionMessage.c_str()));
  
  
  
  1.5       +2 -0      ws-axis/c/src/soap/xsd/String.cpp
  
  Index: String.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/String.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- String.cpp	21 Jan 2005 15:06:56 -0000	1.4
  +++ String.cpp	21 Jan 2005 15:17:19 -0000	1.5
  @@ -32,6 +32,7 @@
               sprintf(length, "%d", strlen(value));
               exceptionMessage += length;
               exceptionMessage += ".";
  +            delete [] length;
               
               throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                   const_cast<AxisChar*>(exceptionMessage.c_str()));
  @@ -53,6 +54,7 @@
               sprintf(length, "%d", strlen(value));
               exceptionMessage += length;
               exceptionMessage += ".";
  +            delete [] length;
               
               throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                   const_cast<AxisChar*>(exceptionMessage.c_str()));
  
  
  
  1.5       +2 -0      ws-axis/c/src/soap/xsd/XSD_QName.cpp
  
  Index: XSD_QName.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/XSD_QName.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XSD_QName.cpp	21 Jan 2005 15:06:56 -0000	1.4
  +++ XSD_QName.cpp	21 Jan 2005 15:17:19 -0000	1.5
  @@ -32,6 +32,7 @@
                   sprintf(length, "%d", strlen(value));
                   exceptionMessage += length;
                   exceptionMessage += ".";
  +                delete [] length;
                   
                   throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                       const_cast<AxisChar*>(exceptionMessage.c_str()));
  @@ -53,6 +54,7 @@
                   sprintf(length, "%d", strlen(value));
                   exceptionMessage += length;
                   exceptionMessage += ".";
  +                delete [] length;
                   
                   throw new AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR,
                       const_cast<AxisChar*>(exceptionMessage.c_str()));