From 5851eebdda5cc2ed9186a034df0ef75ccfe032d3 Mon Sep 17 00:00:00 2001 From: Chen Lihui Date: Mon, 5 Oct 2020 20:27:58 +0800 Subject: [PATCH] Make sure to clean the external client/service handle. (#1296) Signed-off-by: Chen Lihui --- rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp b/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp index e330d92986..c7bf35aa5b 100644 --- a/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp +++ b/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp @@ -86,6 +86,7 @@ class TestAllocatorMemoryStrategy : public ::testing::Test void TearDown() override { + allocator_memory_strategy_.reset(); rclcpp::shutdown(); }