summaryrefslogtreecommitdiff
path: root/src/analysis/disass/links.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-07-12 13:07:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-07-12 13:08:42 (GMT)
commita331ff258895865049bf79bc1629dbc744b7faf5 (patch)
treec4f649ba21afcacf974cc6536f03aa97663a9acd /src/analysis/disass/links.c
parent9b018cede5af54594c0a20847239233153b04ce1 (diff)
Removed the too complex memory share system.
Diffstat (limited to 'src/analysis/disass/links.c')
-rw-r--r--src/analysis/disass/links.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis/disass/links.c b/src/analysis/disass/links.c
index 95e8b2e..640d266 100644
--- a/src/analysis/disass/links.c
+++ b/src/analysis/disass/links.c
@@ -226,8 +226,8 @@ static void convert_immediate_into_target(GArchInstruction *instr, size_t index,
{
new = G_TARGET_OPERAND(g_target_operand_new(msize, &target));
- if (!g_target_operand_resolve(&new, format, false, NULL))
- /*g_object_unref(G_OBJECT(new))*/;
+ if (!g_target_operand_resolve(new, format, false))
+ g_object_unref(G_OBJECT(new));
else
_g_arch_instruction_replace_operand(instr, op, G_ARCH_OPERAND(new));