free allocated variable by perf_alloc

This commit is contained in:
qlliu 2020-01-11 11:14:40 +08:00 committed by Lorenz Meier
parent bd111c9f42
commit 54e4b65daa
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ Navigator::Navigator() :
Navigator::~Navigator()
{
perf_free(_loop_perf);
orb_unsubscribe(_local_pos_sub);
orb_unsubscribe(_vehicle_status_sub);
}