3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 05:18:44 +00:00

DoC: fix memory leak

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
Nuno Lopes 2014-10-07 13:01:35 +01:00
parent 10c40d64b6
commit 528bb507b2

View file

@ -82,6 +82,7 @@ void doc_manager::deallocate(doc* src) {
if (!src) return;
m.deallocate(&src->pos());
src->neg().reset(m);
src->~doc();
m_alloc.deallocate(sizeof(doc), src);
}
void doc_manager::copy(doc& dst, doc const& src) {