systemcmds/tests: IntrusiveQueue and List fix memory leaks

This commit is contained in:
Daniel Agar 2019-10-20 10:46:44 -04:00 committed by GitHub
parent 687a3a15c5
commit 981f8d5d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}