ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/client/cpp EnumerationClient.cpp
Date Fri, 21 Jan 2005 09:27:28 GMT
samisa      2005/01/21 01:27:28

  Modified:    c/tests/auto_build/testcases/client/cpp
                        EnumerationClient.cpp
  Log:
  Added memory cleaning logic
  
  Revision  Changes    Path
  1.5       +8 -2      ws-axis/c/tests/auto_build/testcases/client/cpp/EnumerationClient.cpp
  
  Index: EnumerationClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/EnumerationClient.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- EnumerationClient.cpp	9 Nov 2004 10:26:21 -0000	1.4
  +++ EnumerationClient.cpp	21 Jan 2005 09:27:28 -0000	1.5
  @@ -22,6 +22,9 @@
     bool endpoint_set = false;
     int returnValue = 1; // Assume Failure
   
  +  Type1* input = NULL;
  +  Type1* result = NULL;
  +
     endpoint_set = parse_args_for_endpoint(&argc, argv, &endpoint);
   
     try {
  @@ -32,8 +35,7 @@
       } else
         ws = new EnumerationWS();
   
  -    Type1* input = new Type1();
  -    Type1* result = NULL;
  +    input = new Type1();
   
       input->enum_string="one";
       input->att_enum_string="one";
  @@ -63,6 +65,10 @@
       if(endpoint_set)
         free(endpoint);
     }
  +  delete ws;
  +  delete input;
  +  delete result;
  +
     return returnValue;
   }
   
  
  
  

Mime
View raw message