mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
uORB: ORBSet don't allow duplicate insertion
* fixes a small memory leak in uORBManager.cpp (if using ORB_COMMUNICATOR)
This commit is contained in:
parent
42f4e02d7e
commit
493c9e49db
@ -62,6 +62,11 @@ public:
|
|||||||
{
|
{
|
||||||
Node **p;
|
Node **p;
|
||||||
|
|
||||||
|
// Don't allow duplicates to be inserted
|
||||||
|
if (find(node_name)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_top == nullptr) {
|
if (_top == nullptr) {
|
||||||
p = &_top;
|
p = &_top;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user