From 1eae2fcafbf0512617ec147ddce8c226028d7842 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 70470ec17a..a992c26a15 100644 --- a/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp +++ b/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp @@ -83,6 +83,7 @@ class TestAllocatorMemoryStrategy : public ::testing::Test void TearDown() override { + allocator_memory_strategy_.reset(); rclcpp::shutdown(); }