mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00
contrib/plugins: fix imatch
We can't directly save the ephemeral imatch from argv as that memory will get recycled. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240227144335.1196131-26-alex.bennee@linaro.org>
This commit is contained in:
parent
6036b9cfde
commit
9e096a76c7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue