Re: [PATCH v2 0/2] introduce QEMU_AUTO_VFREE

2021-06-29 Thread Kevin Wolf
Am 28.06.2021 um 14:11 hat Vladimir Sementsov-Ogievskiy geschrieben: > 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 rathe

[PATCH v2 0/2] introduce QEMU_AUTO_VFREE

2021-06-28 Thread Vladimir Sementsov-Ogievskiy
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 ju