mirror of
https://github.com/Z3Prover/z3
synced 2025-07-18 02:16:40 +00:00
scoping th solver to avoid memory leak during cancellation exposed by #3431
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d1f6470805
commit
70a1786061
5 changed files with 10 additions and 6 deletions
|
@ -275,7 +275,7 @@ void rewriter_tpl<Config>::process_app(app * t, frame & fr) {
|
|||
|
||||
unsigned new_num_args = result_stack().size() - fr.m_spos;
|
||||
expr * const * new_args = result_stack().c_ptr() + fr.m_spos;
|
||||
app * new_t;
|
||||
app_ref new_t(m());
|
||||
if (ProofGen) {
|
||||
elim_reflex_prs(fr.m_spos);
|
||||
unsigned num_prs = result_pr_stack().size() - fr.m_spos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue