diff --git a/mtapi_cpp/test/mtapi_cpp_test_group.cc b/mtapi_cpp/test/mtapi_cpp_test_group.cc index a384316..b89bdf8 100644 --- a/mtapi_cpp/test/mtapi_cpp_test_group.cc +++ b/mtapi_cpp/test/mtapi_cpp_test_group.cc @@ -109,6 +109,7 @@ void GroupTest::TestBasic() { PT_EXPECT_EQ(status, MTAPI_GROUP_COMPLETED); } + action.Delete(); embb::mtapi::Node::Finalize(); PT_EXPECT_EQ(embb_get_bytes_allocated(), 0u); diff --git a/mtapi_cpp/test/mtapi_cpp_test_queue.cc b/mtapi_cpp/test/mtapi_cpp_test_queue.cc index 6a492fb..8b77601 100644 --- a/mtapi_cpp/test/mtapi_cpp_test_queue.cc +++ b/mtapi_cpp/test/mtapi_cpp_test_queue.cc @@ -73,6 +73,7 @@ void QueueTest::TestBasic() { PT_EXPECT_EQ(result, 1); } + action.Delete(); embb::mtapi::Node::Finalize(); PT_EXPECT_EQ(embb_get_bytes_allocated(), 0u); diff --git a/mtapi_cpp/test/mtapi_cpp_test_task.cc b/mtapi_cpp/test/mtapi_cpp_test_task.cc index 7600b04..9712c26 100644 --- a/mtapi_cpp/test/mtapi_cpp_test_task.cc +++ b/mtapi_cpp/test/mtapi_cpp_test_task.cc @@ -107,6 +107,8 @@ void TaskTest::TestBasic() { mtapi_status_t status = task.Wait(); PT_EXPECT_EQ(status, MTAPI_SUCCESS); PT_EXPECT(test == "simple"); + + action_task.Delete(); } { @@ -120,6 +122,8 @@ void TaskTest::TestBasic() { testDoSomethingElse(); mtapi_status_t status = task.Wait(); PT_EXPECT_EQ(status, MTAPI_ERR_ACTION_FAILED); + + action_error.Delete(); } embb::mtapi::Node::Finalize();