3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 17:14:07 +00:00

trying to address leak reported in #1297

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-10-10 07:10:04 -07:00
parent cae414e575
commit 7f693186a0

View file

@ -69,6 +69,7 @@ extern "C" {
ok = false;
}
mk_c(c)->m_smtlib_error_buffer = outs.str();
outs.clear();
if (!ok) {
mk_c(c)->reset_parser();
SET_ERROR_CODE(Z3_PARSER_ERROR);
@ -98,6 +99,7 @@ extern "C" {
ok = false;
}
mk_c(c)->m_smtlib_error_buffer = outs.str();
outs.clear();
if (!ok) {
mk_c(c)->reset_parser();
SET_ERROR_CODE(Z3_PARSER_ERROR);