mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 03:43:33 +08:00
Node on leaked memory in UAVCAN driver
This commit is contained in:
committed by
Lorenz Meier
parent
ca4e55fec3
commit
109bee855b
@@ -1069,6 +1069,7 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
|
|||||||
unsigned buflen = strnlen(buf, 1024);
|
unsigned buflen = strnlen(buf, 1024);
|
||||||
|
|
||||||
if (_mixers == nullptr) {
|
if (_mixers == nullptr) {
|
||||||
|
// TODO: Do we have to delete it when stopping?
|
||||||
_mixers = new MixerGroup(control_callback, (uintptr_t)_controls);
|
_mixers = new MixerGroup(control_callback, (uintptr_t)_controls);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user