mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 09:34:08 +00:00
trying to address leak reported in #1297
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cae414e575
commit
7f693186a0
|
@ -69,6 +69,7 @@ extern "C" {
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
mk_c(c)->m_smtlib_error_buffer = outs.str();
|
mk_c(c)->m_smtlib_error_buffer = outs.str();
|
||||||
|
outs.clear();
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
mk_c(c)->reset_parser();
|
mk_c(c)->reset_parser();
|
||||||
SET_ERROR_CODE(Z3_PARSER_ERROR);
|
SET_ERROR_CODE(Z3_PARSER_ERROR);
|
||||||
|
@ -98,6 +99,7 @@ extern "C" {
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
mk_c(c)->m_smtlib_error_buffer = outs.str();
|
mk_c(c)->m_smtlib_error_buffer = outs.str();
|
||||||
|
outs.clear();
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
mk_c(c)->reset_parser();
|
mk_c(c)->reset_parser();
|
||||||
SET_ERROR_CODE(Z3_PARSER_ERROR);
|
SET_ERROR_CODE(Z3_PARSER_ERROR);
|
||||||
|
|
Loading…
Reference in a new issue