Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mem leaks in unit test from 776 #779

Merged
merged 1 commit into from
Aug 31, 2020
Merged

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 brawner@gmail.com

Signed-off-by: Stephen Brawner <brawner@gmail.com>
@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
Signed-off-by: Stephen Brawner <brawner@gmail.com>
ahcorde pushed a commit that referenced this pull request Oct 9, 2020
Signed-off-by: Stephen Brawner <brawner@gmail.com>
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.

2 participants