mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 04:33:10 +08:00
systemcmds/tests: IntrusiveQueue and List fix memory leaks
This commit is contained in:
@@ -243,7 +243,7 @@ bool IntrusiveQueueTest::test_remove()
|
||||
for (auto t : q1) {
|
||||
if (t->i == remove_i) {
|
||||
ut_assert_true(q1.remove(t));
|
||||
t = removed;
|
||||
removed = t;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ bool ListTest::test_remove()
|
||||
for (auto t : list1) {
|
||||
if (t->i == remove_i) {
|
||||
ut_assert_true(list1.remove(t));
|
||||
t = removed;
|
||||
removed = t;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user