forked from Archive/PX4-Autopilot
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:
commit
14b09d6367
|
@ -249,7 +249,9 @@ Mavlink::~Mavlink()
|
|||
} while (_task_running);
|
||||
}
|
||||
|
||||
LL_DELETE(_mavlink_instances, this);
|
||||
if (_mavlink_instances) {
|
||||
LL_DELETE(_mavlink_instances, this);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue