Commit 0c94326
authored
Call rcl_action_goal_status_array_fini() when publishing status failed (#1332)
This PR improves resource management in the `ActionPublishStatus` function by ensuring `rcl_action_goal_status_array_fini()` is called to clean up the status message array even when publishing the status fails, preventing potential resource leaks.
Fix: #13301 parent 5e43c92 commit 0c94326
1 file changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
322 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
323 | 341 | | |
324 | 342 | | |
325 | 343 | | |
| |||
0 commit comments