diff options
Diffstat (limited to 'plugins/lnxsyscalls')
-rw-r--r-- | plugins/lnxsyscalls/hops_armv7.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/lnxsyscalls/hops_armv7.c b/plugins/lnxsyscalls/hops_armv7.c index d706a10..cde092c 100644 --- a/plugins/lnxsyscalls/hops_armv7.c +++ b/plugins/lnxsyscalls/hops_armv7.c @@ -148,11 +148,16 @@ static bool resolve_armv7_linux_syscall_number(tracked_path *exec, GArchProcesso op = g_arch_instruction_get_operand(instr, 1); if (!G_IS_IMM_OPERAND(op)) + { + g_object_unref(G_OBJECT(op)); goto ralsn_exit; + } *nr = g_imm_operand_get_raw_value(G_IMM_OPERAND(op)); result = true; + g_object_unref(G_OBJECT(op)); + } ralsn_exit: |