[PATCH 2/5] qemu: Add free and copy function for qemuDomainJobInfo and use it

Eric Blake eblake at redhat.com
Thu Apr 16 13:27:15 UTC 2020


On 4/16/20 4:55 AM, Peter Krempa wrote:
> In order to add a string to qemuDomainJobInfo we must ensure that it's
> freed and copied properly. Add helpers to copy and free the structure
> and adjust the code to use them properly for the new semantics.
> 
> Additionally also allocation is changed to g_new0 as it includes the
> type and thus it's very easy to grep for all the allocations of a given
> type.
> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---

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