Fix memory leak in test_arguments (#230)

valgrind was complaining about some lost memory here. 
The proposed change should fix it.
This commit is contained in:
Karsten Knese 2018-04-30 09:41:41 -07:00 committed by GitHub
parent ff024ee9fd
commit fdd534e19e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,6 +196,7 @@ TEST_F(CLASSNAME(TestArgumentsFixture, RMW_IMPLEMENTATION), test_double_parse) {
ASSERT_EQ(RCL_RET_INVALID_ARGUMENT,
rcl_parse_arguments(argc, argv, rcl_get_default_allocator(), &parsed_args));
rcl_reset_error();
EXPECT_EQ(RCL_RET_OK, rcl_arguments_fini(&parsed_args));
}