[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/2] introduce QEMU_AUTO_VFREE
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v2 0/2] introduce QEMU_AUTO_VFREE |
Date: |
Mon, 28 Jun 2021 15:11:31 +0300 |
Hi all!
There is a good movement to use g_autofree macro, that helps to
automatically call g_free on exit from code block.
We lack similar possibility for qemu_memalign() functions family. Let's
add, it seems rather simple with help of "cleanup" attribute.
v2: rewrite 01 (as first version was just wrong)
Vladimir Sementsov-Ogievskiy (2):
introduce QEMU_AUTO_VFREE
block/commit: use QEMU_AUTO_VFREE
include/qemu/osdep.h | 15 +++++++++++++++
block/commit.c | 25 +++++++++----------------
2 files changed, 24 insertions(+), 16 deletions(-)
--
2.29.2
- [PATCH v2 0/2] introduce QEMU_AUTO_VFREE,
Vladimir Sementsov-Ogievskiy <=