mirror of
https://github.com/Z3Prover/z3
synced 2025-06-14 18:06:15 +00:00
play nice with sanitizers
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6f65051f2c
commit
f4472927c0
5 changed files with 14 additions and 5 deletions
|
@ -230,9 +230,10 @@ mpz_manager<SYNCH>::sign_cell::sign_cell(mpz_manager& m, mpz const& a):
|
|||
|
||||
|
||||
template<bool SYNCH>
|
||||
void mpz_manager<SYNCH>::del(mpz & a) {
|
||||
void mpz_manager<SYNCH>::del(mpz_manager<SYNCH>* m, mpz & a) {
|
||||
if (a.m_ptr) {
|
||||
deallocate(a.m_owner == mpz_self, a.m_ptr);
|
||||
SASSERT(m);
|
||||
m->deallocate(a.m_owner == mpz_self, a.m_ptr);
|
||||
a.m_ptr = nullptr;
|
||||
a.m_kind = mpz_small;
|
||||
a.m_owner = mpz_self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue