We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb0dc35 commit a759808Copy full SHA for a759808
rclcpp_action/src/client.cpp
@@ -102,8 +102,9 @@ class ClientBaseImpl
102
103
rclcpp::Context::SharedPtr context_;
104
rclcpp::node_interfaces::NodeGraphInterface::WeakPtr node_graph_;
105
- std::shared_ptr<rcl_action_client_t> client_handle{nullptr};
+ // node_handle must be destroyed after client_handle to prevent memory leak
106
std::shared_ptr<rcl_node_t> node_handle{nullptr};
107
+ std::shared_ptr<rcl_action_client_t> client_handle{nullptr};
108
rclcpp::Logger logger;
109
110
using ResponseCallback = std::function<void (std::shared_ptr<void> response)>;
0 commit comments