mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
fixed potential handle leak
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
a4c599a435
commit
088dc411ba
|
@ -124,6 +124,7 @@ unsigned read_smtlib2_commands(char const * file_name) {
|
|||
exit(ERR_OPEN_FILE);
|
||||
}
|
||||
result = parse_smt2_commands(ctx, in);
|
||||
in.close();
|
||||
}
|
||||
else {
|
||||
result = parse_smt2_commands(ctx, std::cin, true);
|
||||
|
|
Loading…
Reference in a new issue