Node on leaked memory in UAVCAN driver

This commit is contained in:
Pavel Kirienko 2015-10-17 03:49:02 +03:00 committed by Lorenz Meier
parent ca4e55fec3
commit 109bee855b

View File

@ -1069,6 +1069,7 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
unsigned buflen = strnlen(buf, 1024);
if (_mixers == nullptr) {
// TODO: Do we have to delete it when stopping?
_mixers = new MixerGroup(control_callback, (uintptr_t)_controls);
}