3
0
Fork 0
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:
Nuno Lopes 2020-06-18 19:25:32 +01:00
parent 3b1149330d
commit fdeba2102c

View file

@ -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);