Skip to content

Commit

Permalink
insn_impl_control.h: fix an uninitialized use of "mctx"
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jun 16, 2024
1 parent 2792241 commit 699c43d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/insn_impl_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,9 @@ INSN_IMPL(br_table)
SAVE_PC;
INSN_SUCCESS;
fail:
mem_free(mctx, table, vec_count * sizeof(uint32_t));
if (table != NULL) {
mem_free(mctx, table, vec_count * sizeof(uint32_t));
}
INSN_FAIL;
}

Expand Down

0 comments on commit 699c43d

Please sign in to comment.