Re: [Qemu-devel] [PATCH v2 1/2] nbd: Use g_autofree in a few places

2019-08-27 Thread Vladimir Sementsov-Ogievskiy
24.08.2019 20:28, Eric Blake wrote: > Thanks to our recent move to use glib's g_autofree, I can join the > bandwagon. Getting rid of gotos is fun ;) > > There are probably more places where we could register cleanup > functions and get rid of more gotos; this patch just focuses on the > labels th

Re: [Qemu-devel] [PATCH v2 1/2] nbd: Use g_autofree in a few places

2019-08-27 Thread Daniel P . Berrangé
On Sat, Aug 24, 2019 at 12:28:12PM -0500, Eric Blake wrote: > Thanks to our recent move to use glib's g_autofree, I can join the > bandwagon. Getting rid of gotos is fun ;) > > There are probably more places where we could register cleanup > functions and get rid of more gotos; this patch just fo

[Qemu-devel] [PATCH v2 1/2] nbd: Use g_autofree in a few places

2019-08-24 Thread Eric Blake
Thanks to our recent move to use glib's g_autofree, I can join the bandwagon. Getting rid of gotos is fun ;) There are probably more places where we could register cleanup functions and get rid of more gotos; this patch just focuses on the labels that existed merely to call g_free. Signed-off-by