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 a memory leak in test_rcl_lifecycle. #1173

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

clalancette
Copy link
Contributor

This one came about probably as a result of a bad merge. But essentially we were forcing the srv_change_state com_interface to be nullptr, but forgetting to save off the old pointer early enough. Thus, we could never restore the old one before we went to "fini", and the memory would be leaked. Fix this by remembering the impl pointer earlier.

This one came about probably as a result of a bad merge.
But essentially we were forcing the srv_change_state
com_interface to be nullptr, but forgetting to save off
the old pointer early enough.  Thus, we could never restore
the old one before we went to "fini", and the memory would
be leaked.  Fix this by remembering the impl pointer earlier.

Signed-off-by: Chris Lalancette <[email protected]>
@clalancette
Copy link
Contributor Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

good eye 👍 lgtm with green CI.

@ahcorde ahcorde merged commit 6df1195 into rolling Jul 26, 2024
3 checks passed
@ahcorde ahcorde deleted the clalancette/fix-test-rcl-lifecycle-memory-leak branch July 26, 2024 09:18
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.

None yet

3 participants