Browse Source

systemcmds/tests: IntrusiveQueue and List fix memory leaks

sbg
Daniel Agar 5 years ago committed by GitHub
parent
commit
981f8d5d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/systemcmds/tests/test_IntrusiveQueue.cpp
  2. 2
      src/systemcmds/tests/test_List.cpp

2
src/systemcmds/tests/test_IntrusiveQueue.cpp

@ -243,7 +243,7 @@ bool IntrusiveQueueTest::test_remove() @@ -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;
}
}

2
src/systemcmds/tests/test_List.cpp

@ -136,7 +136,7 @@ bool ListTest::test_remove() @@ -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;
}
}

Loading…
Cancel
Save