[PATCH 12/21] qemuMonitorJSON(Add|Remove)Netdev: Refactor cleanup

Eric Blake eblake at redhat.com
Mon May 18 14:51:43 UTC 2020


On 5/15/20 10:27 AM, Peter Krempa wrote:
> Use automatic pointer cleanup for virJSONValuePtrs to get rid of the
> cleanup label and ret variable.
> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>   src/qemu/qemu_monitor_json.c | 52 +++++++++++++++---------------------
>   1 file changed, 22 insertions(+), 30 deletions(-)
> 

Reviewed-by: Eric Blake <eblake at redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




More information about the libvir-list mailing list