summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-01-31 14:44:41 +0000
committerstanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-01-31 14:44:41 +0000
commit19d43bf734391d8d873e33f5f2a5c57784b12311 (patch)
tree6c8e60a180455ee2026b612b5738c9b52e4e0db9
parent94df53b603bb6bfa49e7a7f40a52fd1f432a555d (diff)
downloadATCD-19d43bf734391d8d873e33f5f2a5c57784b12311.tar.gz
Fixed another error in array allocation disallowed by vc10.
-rw-r--r--ACE/OCI_RE_ChangeLog6
-rw-r--r--ACE/tests/Message_Block_Large_Copy_Test.cpp4
2 files changed, 9 insertions, 1 deletions
diff --git a/ACE/OCI_RE_ChangeLog b/ACE/OCI_RE_ChangeLog
index 98932948f9a..94e5418095f 100644
--- a/ACE/OCI_RE_ChangeLog
+++ b/ACE/OCI_RE_ChangeLog
@@ -1,3 +1,9 @@
+Thu Jan 31 14:38:03 UTC 2013 "Kevin Stanley" <stanleyk@ociweb.com>
+
+ * tests/Message_Block_Large_Copy_Test.cpp:
+
+ Fixed another error in allocation missed the first time.
+
Thu Jan 31 14:31:17 UTC 2013 Kevin Stanley <stanleyk@ociweb.com>
* tests/Message_Block_Large_Copy_Test.cpp:
diff --git a/ACE/tests/Message_Block_Large_Copy_Test.cpp b/ACE/tests/Message_Block_Large_Copy_Test.cpp
index 78dde5abe7a..4c91116851f 100644
--- a/ACE/tests/Message_Block_Large_Copy_Test.cpp
+++ b/ACE/tests/Message_Block_Large_Copy_Test.cpp
@@ -61,7 +61,7 @@ size_t
run_clone_test (size_t msg_block_count, size_t msg_block_size)
{
size_t rc = 0;
- char block[msg_block_size];
+ char* block = new char[msg_block_size];
for (size_t j = 0 ; j != msg_block_size; j++)
block[j] = 'A';
@@ -92,6 +92,8 @@ run_clone_test (size_t msg_block_count, size_t msg_block_size)
mb_test-> release();
mb_top-> release();
}
+
+ delete block;
return rc;
}