uORB: ORBSet don't allow duplicate insertion

* fixes a small memory leak in uORBManager.cpp (if using ORB_COMMUNICATOR)
This commit is contained in:
Eric Katzfey 2024-05-30 13:53:48 -07:00 committed by GitHub
parent 42f4e02d7e
commit 493c9e49db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,11 @@ public:
{
Node **p;
// Don't allow duplicates to be inserted
if (find(node_name)) {
return;
}
if (_top == nullptr) {
p = &_top;