summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/disass/links.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/analysis/disass/links.c b/src/analysis/disass/links.c
index cf33677..d67040b 100644
--- a/src/analysis/disass/links.c
+++ b/src/analysis/disass/links.c
@@ -273,8 +273,11 @@ void establish_links_for_instruction(GArchInstruction *instr, GBinFormat *format
if (target != NULL)
{
- g_arch_instruction_link_with(instr, target, ILT_REF);
+ if (!g_arch_instruction_has_link_to(instr, target))
+ g_arch_instruction_link_with(instr, target, ILT_REF);
+
g_object_unref(G_OBJECT(target));
+
}
}