mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 20:50:35 +08:00
Merge pull request #2171 from NaterGator/master
Fix potential null pointer deref in Mavlink dtor if task_main returns error
This commit is contained in:
@@ -249,7 +249,9 @@ Mavlink::~Mavlink()
|
||||
} while (_task_running);
|
||||
}
|
||||
|
||||
LL_DELETE(_mavlink_instances, this);
|
||||
if (_mavlink_instances) {
|
||||
LL_DELETE(_mavlink_instances, this);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user