Skip to content

Commit 2e491b1

Browse files
iceuwZiohangSteveMacenski
authored
Fix goal handle was not freed correctly (ros-navigation#4137)
* Fix goal handle was not freed correctly * Update nav2_util/include/nav2_util/simple_action_server.hpp Signed-off-by: Steve Macenski <[email protected]> --------- Signed-off-by: Steve Macenski <[email protected]> Co-authored-by: Ziohang <[email protected]> Co-authored-by: Steve Macenski <[email protected]>
1 parent 55c952d commit 2e491b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nav2_util/include/nav2_util/simple_action_server.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ class SimpleActionServer
574574
* @param the Results object to terminate the action with
575575
*/
576576
void terminate(
577-
std::shared_ptr<rclcpp_action::ServerGoalHandle<ActionT>> handle,
577+
std::shared_ptr<rclcpp_action::ServerGoalHandle<ActionT>> & handle,
578578
typename std::shared_ptr<typename ActionT::Result> result =
579579
std::make_shared<typename ActionT::Result>())
580580
{

0 commit comments

Comments
 (0)