mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Fix memory leak in realclosure
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
1d761ea9a5
commit
09d3686d58
|
@ -770,10 +770,12 @@ namespace realclosure {
|
||||||
}
|
}
|
||||||
|
|
||||||
void del_transcendental(transcendental * t) {
|
void del_transcendental(transcendental * t) {
|
||||||
|
bqim().del(t->m_interval);
|
||||||
allocator().deallocate(sizeof(transcendental), t);
|
allocator().deallocate(sizeof(transcendental), t);
|
||||||
}
|
}
|
||||||
|
|
||||||
void del_infinitesimal(infinitesimal * i) {
|
void del_infinitesimal(infinitesimal * i) {
|
||||||
|
bqim().del(i->m_interval);
|
||||||
allocator().deallocate(sizeof(infinitesimal), i);
|
allocator().deallocate(sizeof(infinitesimal), i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue