3
0
Fork 0
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:
Leonardo de Moura 2013-01-12 15:54:07 -08:00
parent 1d761ea9a5
commit 09d3686d58

View file

@ -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);
} }