mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +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;
|
||||
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…
Add table
Add a link
Reference in a new issue