mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 20:03:54 +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:
@@ -62,6 +62,11 @@ public:
|
||||
{
|
||||
Node **p;
|
||||
|
||||
// Don't allow duplicates to be inserted
|
||||
if (find(node_name)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_top == nullptr) {
|
||||
p = &_top;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user