mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 11:56:31 +02: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
@ -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 New Issue
Block a user