mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 23:42:24 +00:00
core_tests: deinit core before destroying it
This fixes a use after free by ioservice threads
This commit is contained in:
parent
bc8a52efd8
commit
b245215193
1 changed files with 3 additions and 1 deletions
|
@ -498,7 +498,9 @@ inline bool do_replay_events(std::vector<test_event_entry>& events)
|
|||
return false;
|
||||
}
|
||||
t_test_class validator;
|
||||
return replay_events_through_core<t_test_class>(c, events, validator);
|
||||
bool ret = replay_events_through_core<t_test_class>(c, events, validator);
|
||||
c.deinit();
|
||||
return ret;
|
||||
}
|
||||
//--------------------------------------------------------------------------
|
||||
template<class t_test_class>
|
||||
|
|
Loading…
Reference in a new issue