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 8f2809d commit 874d4fbCopy full SHA for 874d4fb
rclcpp_action/src/client.cpp
@@ -100,8 +100,9 @@ class ClientBaseImpl
100
101
rclcpp::Context::SharedPtr context_;
102
rclcpp::node_interfaces::NodeGraphInterface::WeakPtr node_graph_;
103
- std::shared_ptr<rcl_action_client_t> client_handle{nullptr};
+ // node_handle must be destroyed after client_handle to prevent memory leak
104
std::shared_ptr<rcl_node_t> node_handle{nullptr};
105
+ std::shared_ptr<rcl_action_client_t> client_handle{nullptr};
106
rclcpp::Logger logger;
107
108
using ResponseCallback = std::function<void (std::shared_ptr<void> response)>;
0 commit comments