fix leak in test_context (#441)
Signed-off-by: Abby Xu <abbyxu@amazon.com>
This commit is contained in:
parent
2380a1a3a8
commit
6042af41c7
1 changed files with 3 additions and 0 deletions
|
@ -111,4 +111,7 @@ TEST_F(CLASSNAME(TestContextFixture, RMW_IMPLEMENTATION), nominal) {
|
|||
});
|
||||
EXPECT_NE(rmw_context_ptr, nullptr) << rcl_get_error_string().str;
|
||||
rcl_reset_error();
|
||||
|
||||
ret = rcl_init_options_fini(&init_options);
|
||||
EXPECT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue