aboutsummaryrefslogtreecommitdiff
path: root/include/hw/mem/sparse-mem.h
diff options
context:
space:
mode:
authorSteve Sistare <steven.sistare@oracle.com>2024-02-27 16:33:21 +0100
committerMarkus Armbruster <armbru@redhat.com>2024-03-04 07:12:40 +0100
commit018d5fb1f91c7f316b4b8501a78e7219bb9fb614 (patch)
tree86d34753eb63543295d26afcfc1a58844e85b520 /include/hw/mem/sparse-mem.h
parent8a08a366c5e05ce9417d4bcc364e76720a16b41f (diff)
downloadqemu-018d5fb1f91c7f316b4b8501a78e7219bb9fb614.zip
qemu-018d5fb1f91c7f316b4b8501a78e7219bb9fb614.tar.gz
qemu-018d5fb1f91c7f316b4b8501a78e7219bb9fb614.tar.bz2
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 'include/hw/mem/sparse-mem.h')
0 files changed, 0 insertions, 0 deletions