From c8889f2363b6ff306400d2f5a834ebf10cb4b892 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Tue, 21 Jul 2020 13:00:52 +0000 Subject: [PATCH] Make sure to call rcl_arguments_fini at the end of the test. This just prevents a memory leak. Signed-off-by: Chris Lalancette --- rcl/test/rcl/test_node.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rcl/test/rcl/test_node.cpp b/rcl/test/rcl/test_node.cpp index 7a02536..484739d 100644 --- a/rcl/test/rcl/test_node.cpp +++ b/rcl/test/rcl/test_node.cpp @@ -798,4 +798,6 @@ TEST_F(CLASSNAME(TestNodeFixture, RMW_IMPLEMENTATION), test_rcl_node_options_fai rcl_node_options_t default_options = rcl_node_get_default_options(); EXPECT_EQ(RCL_RET_INVALID_ARGUMENT, rcl_node_options_copy(&default_options, &prev_ini_options)); + + EXPECT_EQ(RCL_RET_OK, rcl_arguments_fini(&prev_ini_options.arguments)); }