3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-10 19:27:06 +00:00

fix missing nullptr check for #5156

This commit is contained in:
Nikolaj Bjorner 2021-04-08 10:30:33 -07:00
parent 887b62efe6
commit b1f5933c7d

View file

@ -48,7 +48,8 @@ extern "C" {
Z3_TRY;
LOG_Z3_ast_vector_dec_ref(c, v);
RESET_ERROR_CODE();
to_ast_vector(v)->dec_ref();
if (v)
to_ast_vector(v)->dec_ref();
Z3_CATCH;
}