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:
parent
10c40d64b6
commit
528bb507b2
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue