[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/23] plugins/lockstep: preserve sock_path
From: |
Alex Bennée |
Subject: |
[PATCH 09/23] plugins/lockstep: preserve sock_path |
Date: |
Fri, 28 Jun 2024 13:42:44 +0100 |
We can't assign sock_path directly from the autofree'd GStrv, take a
copy.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
contrib/plugins/lockstep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c
index 237543b43a..111ec3fa27 100644
--- a/contrib/plugins/lockstep.c
+++ b/contrib/plugins/lockstep.c
@@ -347,7 +347,7 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t
id,
return -1;
}
} else if (g_strcmp0(tokens[0], "sockpath") == 0) {
- sock_path = tokens[1];
+ sock_path = strdup(tokens[1]);
} else {
fprintf(stderr, "option parsing failed: %s\n", p);
return -1;
--
2.39.2
- Re: [PATCH 10/23] plugins/lockstep: make mixed-mode safe, (continued)
- [PATCH 11/23] plugins/lockstep: mention the one-insn-per-tb option, Alex Bennée, 2024/06/28
- [PATCH 12/23] plugins/lockstep: clean-up output, Alex Bennée, 2024/06/28
- [PATCH 17/23] target/arm: Make some MTE helpers widely available, Alex Bennée, 2024/06/28
- [PATCH 14/23] gdbstub: Move GdbCmdParseEntry into a new header file, Alex Bennée, 2024/06/28
- [PATCH 05/23] tests/docker: Specify --userns keep-id for Podman, Alex Bennée, 2024/06/28
- [PATCH 18/23] target/arm: Factor out code for setting MTE TCF0 field, Alex Bennée, 2024/06/28
- [PATCH 15/23] gdbstub: Add support for target-specific stubs, Alex Bennée, 2024/06/28
- [PATCH 06/23] tests/tcg/arm: Fix fcvt result messages, Alex Bennée, 2024/06/28
- [PATCH 09/23] plugins/lockstep: preserve sock_path,
Alex Bennée <=
- [PATCH 13/23] gdbstub: Clean up process_string_cmd, Alex Bennée, 2024/06/28
- [PATCH 21/23] gdbstub: Use true to set cmd_startswith, Alex Bennée, 2024/06/28
- [PATCH 16/23] target/arm: Fix exception case in allocation_tag_mem_probe, Alex Bennée, 2024/06/28
- [PATCH 22/23] gdbstub: Add support for MTE in user mode, Alex Bennée, 2024/06/28
- [PATCH 20/23] gdbstub: Pass CPU context to command handler, Alex Bennée, 2024/06/28
- [PATCH 23/23] tests/tcg/aarch64: Add MTE gdbstub tests, Alex Bennée, 2024/06/28
- [PATCH 19/23] gdbstub: Make hex conversion function non-internal, Alex Bennée, 2024/06/28