Skip to content

Commit

Permalink
contrib/plugins: fix imatch
Browse files Browse the repository at this point in the history
We can't directly save the ephemeral imatch from argv as that memory
will get recycled.

Message-Id: <20240103173349.398526-40-alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
  • Loading branch information
stsquad committed Jan 16, 2024
1 parent 58aaf49 commit 5377db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/plugins/execlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static void parse_insn_match(char *match)
if (!imatches) {
imatches = g_ptr_array_new();
}
g_ptr_array_add(imatches, match);
g_ptr_array_add(imatches, g_strdup(match));
}

static void parse_vaddr_match(char *match)
Expand Down

0 comments on commit 5377db2

Please sign in to comment.