Skip to content

Commit

Permalink
Fix goal handle was not freed correctly (ros-navigation#4137) (ros-na…
Browse files Browse the repository at this point in the history
…vigation#4143)

* Fix goal handle was not freed correctly

* Update nav2_util/include/nav2_util/simple_action_server.hpp

Signed-off-by: Steve Macenski <stevenmacenski@gmail.com>

---------

Signed-off-by: Steve Macenski <stevenmacenski@gmail.com>
Co-authored-by: Ziohang <hang.zhou@agvsz.com>
Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
(cherry picked from commit 2e491b1)

Co-authored-by: iceuw <m201770623@hust.edu.cn>
  • Loading branch information
2 people authored and RBT22 committed Apr 9, 2024
1 parent 47ded06 commit 3149de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_util/include/nav2_util/simple_action_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ class SimpleActionServer
* @param the Results object to terminate the action with
*/
void terminate(
std::shared_ptr<rclcpp_action::ServerGoalHandle<ActionT>> handle,
std::shared_ptr<rclcpp_action::ServerGoalHandle<ActionT>> & handle,
typename std::shared_ptr<typename ActionT::Result> result =
std::make_shared<typename ActionT::Result>())
{
Expand Down

0 comments on commit 3149de9

Please sign in to comment.