]> git.proxmox.com Git - mirror_qemu.git/commit
backends: Use g_autofree in HostMemoryBackendClass::alloc() handlers
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Nov 2023 11:59:15 +0000 (12:59 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:15 +0000 (16:20 +0100)
commit2d7a1eb6e65d5dd32cb9943b6fb3c81d206cd61f
tree0c7ddc0649eb8230b06e77442da1e3a24e4a4479
parent9583a905793986d9018fe1fbb17d17fb4f0d76dd
backends: Use g_autofree in HostMemoryBackendClass::alloc() handlers

In preparation of having HostMemoryBackendClass::alloc() handlers
return a boolean, have them use g_autofree.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-15-philmd@linaro.org>
backends/hostmem-epc.c
backends/hostmem-file.c
backends/hostmem-memfd.c
backends/hostmem-ram.c