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

[rcl_lifecycle] Do not share transition event message between nodes #27

Conversation

mauropasse
Copy link

@mauropasse mauropasse commented Aug 2, 2022

Cherry-pick'd from: ros2#956
Signed-off-by: Ivan Santiago Paunovic [email protected]

This PR does not only fix the memory leak of 3 bytes times (n_lifecycle_nodes -1).
It is also a fix to a potentially dangerous problem of different lifecycle nodes which (wrongly) shared the same transition event msg - since before it was static, thus there was a single lifecycle_msgs__msg__TransitionEvent shared among all nodes.

@alsora alsora merged commit 21cca41 into irobot-ros:galactic-events-executor Aug 2, 2022
@mauropasse mauropasse deleted the mauro/galactic-events-executor-fix-memory-leak branch August 2, 2022 15:48
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