mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 10:05:32 +00:00
fix memory leak exposed by tan.smt2
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c06ed77ff1
commit
ace4dbe32b
2 changed files with 22 additions and 18 deletions
|
@ -554,10 +554,8 @@ public:
|
|||
return temp;
|
||||
}
|
||||
|
||||
void reset(mpz & a) {
|
||||
a.m_val = 0;
|
||||
a.m_kind = mpz_small;
|
||||
}
|
||||
// deallocates any memory.
|
||||
void reset(mpz & a);
|
||||
|
||||
void swap(mpz & a, mpz & b) {
|
||||
std::swap(a.m_val, b.m_val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue