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

2020-04-16 Thread Eric Blake
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 a

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

2020-04-16 Thread Peter Krempa
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