Re: [libvirt] [PATCH 1/9] util: json: Fix freeing of objects appended to virJSONValue

2018-03-30 Thread Ján Tomko
On Fri, Mar 30, 2018 at 12:59:08PM +0200, Peter Krempa wrote: It was not possible to determine whether virJSONValueObjectAddVArgs and the functions using it would consume a virJSONValue or not when used with the 'a' or 'A' modifier depending on when the loop failed. Fix this by passing in a

[libvirt] [PATCH 1/9] util: json: Fix freeing of objects appended to virJSONValue

2018-03-30 Thread Peter Krempa
It was not possible to determine whether virJSONValueObjectAddVArgs and the functions using it would consume a virJSONValue or not when used with the 'a' or 'A' modifier depending on when the loop failed. Fix this by passing in a pointer to the pointer so that it can be cleared once it's