diff options
author | Pavel Kirienko <pavel.kirienko@gmail.com> | 2014-08-22 13:58:05 +0400 |
---|---|---|
committer | Pavel Kirienko <pavel.kirienko@gmail.com> | 2014-08-22 13:58:05 +0400 |
commit | 54affaf633216c3aef65164c7e43674c8c26f178 (patch) | |
tree | 9dd5bc47b3414f7847f1bf10e195a45bfd6d5111 | |
parent | f820010a2b51d03f0099d3b4853e0620593721e6 (diff) | |
download | px4-firmware-54affaf633216c3aef65164c7e43674c8c26f178.tar.gz px4-firmware-54affaf633216c3aef65164c7e43674c8c26f178.tar.bz2 px4-firmware-54affaf633216c3aef65164c7e43674c8c26f178.zip |
UAVCAN sensor enable command fix
-rw-r--r-- | src/modules/uavcan/uavcan_main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/uavcan/uavcan_main.cpp b/src/modules/uavcan/uavcan_main.cpp index fc5521aa7..71302d928 100644 --- a/src/modules/uavcan/uavcan_main.cpp +++ b/src/modules/uavcan/uavcan_main.cpp @@ -558,6 +558,8 @@ int UavcanNode::sensor_enable(const char *bridge_name) retval = bridge->init(); if (retval >= 0) { _sensor_bridges.add(bridge); + } else { + delete bridge; } } |