Skip to content

Commit

Permalink
fix leak in test_guard_condition (#446)
Browse files Browse the repository at this point in the history
Signed-off-by: Abby Xu <abbyxu@amazon.com>
  • Loading branch information
xabxx authored and dirk-thomas committed May 20, 2019
1 parent 2a9b297 commit fa1757b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rcl/test/rcl/test_guard_condition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ TEST_F(
ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({
ASSERT_EQ(RCL_RET_OK, rcl_shutdown(&context));
ASSERT_EQ(RCL_RET_OK, rcl_context_fini(&context));
});
// Try invalid arguments.
ret = rcl_guard_condition_init(nullptr, &context, default_options);
Expand Down

0 comments on commit fa1757b

Please sign in to comment.