]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/nvme: Automatically free qemu_memalign() with QEMU_AUTO_VFREE
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 6 Oct 2021 16:49:27 +0000 (18:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 2 Nov 2021 14:48:55 +0000 (15:48 +0100)
commit4a613bd86256543b9735307674a84e167a585687
tree9e9858a58740c9245012db9b7246b680eeed791a
parent73d4a11300ee87e04f93fab4380b80379e792a06
block/nvme: Automatically free qemu_memalign() with QEMU_AUTO_VFREE

Since commit 4d324c0bf65 ("introduce QEMU_AUTO_VFREE") buffers
allocated by qemu_memalign() can automatically freed when using
the QEMU_AUTO_VFREE macro. Use it to simplify a bit.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211006164931.172349-2-philmd@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nvme.c