[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/2] nbd: Use g_autofree in a few places
From: |
Daniel P . Berrangé |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/2] nbd: Use g_autofree in a few places |
Date: |
Tue, 27 Aug 2019 09:42:50 +0100 |
User-agent: |
Mutt/1.12.1 (2019-06-15) |
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 focuses on the
> labels that existed merely to call g_free.
>
> Signed-off-by: Eric Blake <address@hidden>
> ---
> block/nbd.c | 11 ++++-------
> nbd/client.c | 22 +++++++---------------
> nbd/server.c | 12 ++++--------
> 3 files changed, 15 insertions(+), 30 deletions(-)
Reviewed-by: Daniel P. Berrangé <address@hidden>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|