summaryrefslogtreecommitdiff
path: root/tests/Barrier_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-27 03:05:21 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-27 03:05:21 +0000
commit9a75a586957dcfa763c7ea2e9bac322ee6e33b64 (patch)
tree966982eeb9507e85b5c4238b5ddf6932eb4c9705 /tests/Barrier_Test.cpp
parentadd97873bbf9b853ffced75d6dfa397717ae8ba7 (diff)
downloadATCD-9a75a586957dcfa763c7ea2e9bac322ee6e33b64.tar.gz
(main): delete thread_handles array to prevent memory leak
Diffstat (limited to 'tests/Barrier_Test.cpp')
-rw-r--r--tests/Barrier_Test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Barrier_Test.cpp b/tests/Barrier_Test.cpp
index c48bb8dff0d..999434a7c5f 100644
--- a/tests/Barrier_Test.cpp
+++ b/tests/Barrier_Test.cpp
@@ -117,6 +117,8 @@ main (int, char *[])
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "join"), -1);
#endif /* VXWORKS */
}
+
+ delete [] thread_handles;
ACE_DEBUG ((LM_DEBUG, "test done\n"));
#else