summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/lnxsyscalls/hops_armv7.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/lnxsyscalls/hops_armv7.c b/plugins/lnxsyscalls/hops_armv7.c
index 58b2702..ebd4b2c 100644
--- a/plugins/lnxsyscalls/hops_armv7.c
+++ b/plugins/lnxsyscalls/hops_armv7.c
@@ -236,9 +236,10 @@ static void comment_armv7_linux_syscall(tracked_path *exec, size_t sid, syscall_
instr = get_register_write_location(exec, sid, reg);
if (instr != NULL)
+ {
add_comment_at(writer, info->name, instr);
-
- g_object_unref(G_OBJECT(instr));
+ g_object_unref(G_OBJECT(instr));
+ }
g_object_unref(G_OBJECT(reg));
@@ -251,9 +252,10 @@ static void comment_armv7_linux_syscall(tracked_path *exec, size_t sid, syscall_
instr = get_register_write_location(exec, sid, reg);
if (instr != NULL)
+ {
add_comment_at(writer, info->argv[i], instr);
-
- g_object_unref(G_OBJECT(instr));
+ g_object_unref(G_OBJECT(instr));
+ }
g_object_unref(G_OBJECT(reg));