mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 19:02:02 +00:00
DoC: fix memory leak
Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
parent
10c40d64b6
commit
528bb507b2
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ void doc_manager::deallocate(doc* src) {
|
||||||
if (!src) return;
|
if (!src) return;
|
||||||
m.deallocate(&src->pos());
|
m.deallocate(&src->pos());
|
||||||
src->neg().reset(m);
|
src->neg().reset(m);
|
||||||
|
src->~doc();
|
||||||
m_alloc.deallocate(sizeof(doc), src);
|
m_alloc.deallocate(sizeof(doc), src);
|
||||||
}
|
}
|
||||||
void doc_manager::copy(doc& dst, doc const& src) {
|
void doc_manager::copy(doc& dst, doc const& src) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue