Skip to content

Conversation

@brawner
Copy link
Contributor

@brawner brawner commented Aug 31, 2020

PR #776 removed the the call to rcl_yaml_node_struct_fini from rcl_parse_yaml_file in the case of failure. Unfortunately the unit tests weren't updated and now exhibit some memory leaks. This PR addresses those leaks.
Signed-off-by: Stephen Brawner [email protected]

@brawner
Copy link
Contributor Author

brawner commented Aug 31, 2020

Tests --packages-select rcl_yaml_param_parser

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@brawner
Copy link
Contributor Author

brawner commented Aug 31, 2020

With this PR both test_parser.cpp and test_parse_yaml.cpp run without any memory leaks.

Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ! Thanks for the fix @brawner !

@brawner brawner merged commit 6040298 into master Aug 31, 2020
@delete-merged-branch delete-merged-branch bot deleted the brawner/rcl_yaml-mem-leaks-776 branch August 31, 2020 23:03
ahcorde pushed a commit that referenced this pull request Oct 8, 2020
ahcorde pushed a commit that referenced this pull request Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants