From 176738c68853cc8ef763cf9900d639957fc2a2c6 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Fri, 22 Dec 2017 08:57:06 +1100 Subject: [PATCH] commander: add missing px4_close (#8513) --- src/modules/commander/commander.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 86304e2d6e..2a10527b29 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -2221,7 +2221,7 @@ int commander_thread_main(int argc, char *argv[]) /* Check estimator status for signs of bad yaw induced post takeoff navigation failure * for a short time interval after takeoff. Fixed wing vehicles can recover using GPS heading, - * but rotary wing vehicles cannot so the position and velocity validity needs to be latched + * but rotary wing vehicles cannot so the position and velocity validity needs to be latched * to false after failure to prevent flyaway crashes */ if (run_quality_checks && status.is_rotary_wing) { bool estimator_status_updated = false; @@ -3364,6 +3364,7 @@ int commander_thread_main(int argc, char *argv[]) px4_close(param_changed_sub); px4_close(battery_sub); px4_close(land_detector_sub); + px4_close(estimator_status_sub); thread_running = false;