axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r1034271 - /axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp
Date Fri, 12 Nov 2010 06:04:42 GMT
Author: nadiramra
Date: Fri Nov 12 06:04:41 2010
New Revision: 1034271

URL: http://svn.apache.org/viewvc?rev=1034271&view=rev
Log:
testcase fix...should not be deleting unallocated storage.

Modified:
    axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp

Modified: axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp
URL: http://svn.apache.org/viewvc/axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp?rev=1034271&r1=1034270&r2=1034271&view=diff
==============================================================================
--- axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp
(original)
+++ axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp
Fri Nov 12 06:04:41 2010
@@ -19,7 +19,7 @@ int main(int argc, char *argv[])
 
                 xsd__string_Array * arrayIn =new xsd__string_Array();
                 xsd__string *array = new xsd__string[5];                
-        array[0] = "a"; 
+                array[0] = "a";
                 array[1] = "b";
                 array[2] = "c";
                 array[3] = "d";
@@ -39,11 +39,7 @@ int main(int argc, char *argv[])
                         cout << "Value1->StringValue->m_Array[" << i <<
"] = " << *(Value1->StringValue->get(outputSize)[i]) << endl;
 
                   // Clear up input array        
-        for (int deleteIndex = 0 ; deleteIndex < 5 ; deleteIndex++ )
-        {
-            delete [] array[deleteIndex];
-        }
-        delete [] array;
+                delete [] array;
                 delete arrayIn;
 
 



Mime
View raw message