Skip to content
Snippets Groups Projects
Commit f24d8b4b authored by jdh8d's avatar jdh8d
Browse files

Memory leak fix

Former-commit-id: 799443075daf7aa8a26b1af77db22173a828d2e0
parent 5c4ccd10
No related branches found
No related tags found
No related merge requests found
......@@ -285,7 +285,10 @@ void add_new_instructions(VariantIR_t *virp)
/* if we found the instruction, but can't disassemble it, then we skip out for now */
if(instr_len==OUT_OF_RANGE || instr_len==UNKNOWN_OPCODE)
{
free(data);
break;
}
/* intel instructions have a max size of 16 */
assert(1<=instr_len && instr_len<=16);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment