3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-08 15:13:23 +00:00

more missing nullptr flexibility #5156

This commit is contained in:
Nikolaj Bjorner 2021-04-08 10:34:09 -07:00
parent b1f5933c7d
commit d91eac24b7
8 changed files with 20 additions and 10 deletions

View file

@ -74,7 +74,8 @@ extern "C" {
Z3_TRY;
LOG_Z3_tactic_dec_ref(c, t);
RESET_ERROR_CODE();
to_tactic(t)->dec_ref();
if (t)
to_tactic(t)->dec_ref();
Z3_CATCH;
}
@ -104,7 +105,8 @@ extern "C" {
Z3_TRY;
LOG_Z3_probe_dec_ref(c, p);
RESET_ERROR_CODE();
to_probe(p)->dec_ref();
if (p)
to_probe(p)->dec_ref();
Z3_CATCH;
}
@ -476,7 +478,8 @@ extern "C" {
Z3_TRY;
LOG_Z3_apply_result_dec_ref(c, r);
RESET_ERROR_CODE();
to_apply_result(r)->dec_ref();
if (r)
to_apply_result(r)->dec_ref();
Z3_CATCH;
}