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:
parent
887b62efe6
commit
b1f5933c7d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue