On 09/17/2014 03:32 PM, Michael Roth wrote:
> If the .data field of a QAPI Union is NULL, we don't need to free
> any of the union fields.
> 
> Make use of the new visit_start_union interface to access this
> information and instruct the generated code to not visit these
> fields when this occurs.
> 
> Cc: qemu-sta...@nongnu.org
> Reported-by: Fam Zheng <f...@redhat.com>
> Suggested-by: Paolo Bonzini <pbonz...@redhat.com>
> Reviewed-by: Paolo Bonzini <pbonz...@redhat.com>
> Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com>
> ---
>  qapi/qapi-dealloc-visitor.c | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
> 

The comment helps.

Reviewed-by: Eric Blake <ebl...@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to