From 54e4b65daa04b4d68eb472693941a6cd2cf496d2 Mon Sep 17 00:00:00 2001 From: qlliu Date: Sat, 11 Jan 2020 11:14:40 +0800 Subject: [PATCH] free allocated variable by perf_alloc --- src/modules/navigator/navigator_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index 84992bd4a0..0b6fa51a1b 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -114,6 +114,7 @@ Navigator::Navigator() : Navigator::~Navigator() { + perf_free(_loop_perf); orb_unsubscribe(_local_pos_sub); orb_unsubscribe(_vehicle_status_sub); }