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 invalid read on disconnecting anonymous node #592

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Oct 4, 2023

Fixes: #591

When an anonymous node has been disconnected in the controller and the cleanup has been done, a log statement was made afterwards. This statement differed based on the node name. Since the node instance has been cleaned up (freed), but not set to NULL, valgrind reported this as an invalid read. Moved the log statements accordingly.

Fixes: eclipse-bluechi#591

When an anonymous node has been disconnected in the controller
and the cleanup has been done, a log statement was made afterwards.
This statement differed based on the node name. Since the node
instance has been cleaned up (freed), but not set to NULL, valgrind
reported this as an invalid read. Moved the log statements
accordingly.

Signed-off-by: Michael Engel <[email protected]>
Copy link
Member

@mkemel mkemel left a comment

Choose a reason for hiding this comment

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

LGTM

@engelmi engelmi merged commit 787686e into eclipse-bluechi:main Oct 4, 2023
@engelmi engelmi mentioned this pull request Oct 4, 2023
@engelmi engelmi deleted the fix-invalid-read branch February 28, 2024 08:01
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.

Invalid read for disconnecting, anonymous node
2 participants