3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-05 10:50:24 +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,6 +48,7 @@ extern "C" {
Z3_TRY;
LOG_Z3_ast_vector_dec_ref(c, v);
RESET_ERROR_CODE();
if (v)
to_ast_vector(v)->dec_ref();
Z3_CATCH;
}