mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
test: Plug memory leaks and stack-use-after-scope
This commit is contained in:
parent
27c59dc502
commit
fadb39ca62
3 changed files with 13 additions and 9 deletions
|
|
@ -406,11 +406,11 @@ BOOST_AUTO_TEST_CASE(test_CheckQueueControl_Locks)
|
|||
boost::thread_group tg;
|
||||
std::mutex m;
|
||||
std::condition_variable cv;
|
||||
bool has_lock{false};
|
||||
bool has_tried{false};
|
||||
bool done{false};
|
||||
bool done_ack{false};
|
||||
{
|
||||
bool has_lock {false};
|
||||
bool has_tried {false};
|
||||
bool done {false};
|
||||
bool done_ack {false};
|
||||
std::unique_lock<std::mutex> l(m);
|
||||
tg.create_thread([&]{
|
||||
CCheckQueueControl<FakeCheck> control(queue.get());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue