mirror of
https://github.com/Z3Prover/z3
synced 2025-04-11 03:33:35 +00:00
fix deref of free'd memory in mk_fresh_const
This commit is contained in:
parent
3b1149330d
commit
fdeba2102c
|
@ -1971,7 +1971,8 @@ public:
|
|||
}
|
||||
|
||||
app * mk_fresh_const(symbol const& prefix, sort * s, bool skolem = true) {
|
||||
return mk_fresh_const(prefix.str().c_str(), s, skolem);
|
||||
auto str = prefix.str();
|
||||
return mk_fresh_const(str.c_str(), s, skolem);
|
||||
}
|
||||
|
||||
symbol mk_fresh_var_name(char const * prefix = nullptr);
|
||||
|
|
Loading…
Reference in a new issue