Skip to content

introduce QEMU_AUTO_VFREE

Vladimir Sementsov-Ogievskiy qemu-devel 2 versions – Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2introduce QEMU_AUTO_VFREEinclude/qemu/osdep.h+15 -00 replies
2/2block/commit: use QEMU_AUTO_VFREEblock/commit.c+9 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] introduce QEMU_AUTO_VFREE

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(-)
Signature · 1 line
2.29.2