mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
fix mutexes hanging due to access to free'd memory
Thanks to Kevin de Vos for reporting the bug & testing the fix
This commit is contained in:
parent
cb75326686
commit
87a96d7bd4
8 changed files with 27 additions and 8 deletions
|
@ -129,10 +129,11 @@ uint64_t prime_iterator::next() {
|
|||
}
|
||||
|
||||
void prime_iterator::initialize() {
|
||||
ALLOC_MUTEX(g_prime_iterator);
|
||||
g_prime_generator.initialize();
|
||||
}
|
||||
|
||||
void prime_iterator::finalize() {
|
||||
g_prime_generator.finalize();
|
||||
delete g_prime_iterator;
|
||||
DEALLOC_MUTEX(g_prime_iterator);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue