Skip to content

Commit

Permalink
Fix goal handle was not freed correctly (#4137) (#4143)
Browse files Browse the repository at this point in the history
* 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]>
(cherry picked from commit 2e491b1)

Co-authored-by: iceuw <[email protected]>
  • Loading branch information
mergify[bot] and iceuw authored Feb 23, 2024
1 parent 719d7fd commit 7d1213f
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 7d1213f

Please sign in to comment.