Make sure to call rcl_arguments_fini at the end of the test.
This just prevents a memory leak. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This commit is contained in:
parent
4e14874cf4
commit
c8889f2363
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue