All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] introduce QEMU_AUTO_VFREE
@ 2021-06-19 14:21 Vladimir Sementsov-Ogievskiy
  2021-06-19 14:21 ` [PATCH 1/2] " Vladimir Sementsov-Ogievskiy
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2021-06-19 14:21 UTC (permalink / raw)
  To: qemu-block
  Cc: qemu-devel, mreitz, kwolf, vsementsov, jsnow, eesposit, pbonzini,
	eblake, stefanha

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.

I'll update more places with a follow-up if this is accepted.

Vladimir Sementsov-Ogievskiy (2):
  introduce QEMU_AUTO_VFREE
  block/commit: use QEMU_AUTO_VFREE

 include/qemu/osdep.h |  2 ++
 block/commit.c       | 25 +++++++++----------------
 2 files changed, 11 insertions(+), 16 deletions(-)

-- 
2.29.2



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-06-28 11:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-19 14:21 [PATCH 0/2] introduce QEMU_AUTO_VFREE Vladimir Sementsov-Ogievskiy
2021-06-19 14:21 ` [PATCH 1/2] " Vladimir Sementsov-Ogievskiy
2021-06-19 14:21 ` [PATCH 2/2] block/commit: use QEMU_AUTO_VFREE Vladimir Sementsov-Ogievskiy
2021-06-21 13:33 ` [PATCH 0/2] introduce QEMU_AUTO_VFREE Stefan Hajnoczi
2021-06-23 10:34 ` Kevin Wolf
2021-06-28 10:08   ` Kevin Wolf
2021-06-28 11:39     ` Vladimir Sementsov-Ogievskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.