diff options
author | Gereon Kremer <gereon.kremer@cs.rwth-aachen.de> | 2020-07-16 06:34:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 21:34:14 -0700 |
commit | 81821f40c36a6ccbee4bf6ef500cd5dccacb634c (patch) | |
tree | e3cfdc8797ed86143a351bf20883a803f76143b5 /src/smt/smt_engine.h | |
parent | 699af1774b7ddae0b1a8337cb4cd02532a6ad8b0 (diff) |
Fixes memory leak when an exception goes through runCvc4(). (Fixes #4590) (#4750)
As noted in #4590, CVC4 may leak memory if an exception is thrown that interrupts the command execution loop in runCvc4().
While not a major issue (the binary is terminated anyway in this case, this is also why we label it as feature), we should fix it nevertheless.
This commit makes sure that the current command is properly managed by using `std::unique_ptr` to handle its deletion.
Diffstat (limited to 'src/smt/smt_engine.h')
0 files changed, 0 insertions, 0 deletions