summaryrefslogtreecommitdiff
path: root/src/arch/x86/op_mov.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/op_mov.c')
-rw-r--r--src/arch/x86/op_mov.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/x86/op_mov.c b/src/arch/x86/op_mov.c
index 60de5cf..db731bb 100644
--- a/src/arch/x86/op_mov.c
+++ b/src/arch/x86/op_mov.c
@@ -197,7 +197,6 @@ asm_x86_instr *read_instr_mov_from_content_1632(const uint8_t *data, off_t *pos,
reg1 = x86_create_reg1632_operand_from_modrm(data[*pos], oprsize == AOS_32_BITS, false);
if (reg1 == NULL)
{
- (*pos)--;
free(result);
return NULL;
}
@@ -205,8 +204,8 @@ asm_x86_instr *read_instr_mov_from_content_1632(const uint8_t *data, off_t *pos,
reg2 = x86_create_content1632_operand(data, pos, len, oprsize == AOS_32_BITS, true);
if (reg2 == NULL)
{
- (*pos)--;
free(result);
+ free(reg1);
return NULL;
}