diff options
author | 2024-02-27 16:33:21 +0100 | |
---|---|---|
committer | 2024-03-04 07:12:40 +0100 | |
commit | 018d5fb1f91c7f316b4b8501a78e7219bb9fb614 (patch) | |
tree | 86d34753eb63543295d26afcfc1a58844e85b520 /gdbstub/user-target.c | |
parent | qapi: New strv_from_str_list() (diff) | |
download | qemu-018d5fb1f91c7f316b4b8501a78e7219bb9fb614.tar.xz qemu-018d5fb1f91c7f316b4b8501a78e7219bb9fb614.zip |
migration: simplify exec migration functions
Simplify the exec migration code by using list utility functions.
As a side effect, this also fixes a minor memory leak. On function return,
"g_auto(GStrv) argv" frees argv and each element, which is wrong, because
the function does not own the individual elements. To compensate, the code
uses g_steal_pointer which NULLs argv and prevents the destructor from
running, but argv is leaked.
Fixes: cbab4face57b ("migration: convert exec backend ...")
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20240227153321.467343-4-armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'gdbstub/user-target.c')
0 files changed, 0 insertions, 0 deletions