summary refs log tree commit diff stats
path: root/hw/intc
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2014-09-18 15:36:41 -0500
committerLuiz Capitulino <lcapitulino@redhat.com>2014-09-26 13:14:10 -0400
commit146db9f91979db89a123ea10d2b825d3670d2b36 (patch)
treea6b1d5ce3e635e4db14b9308f9bc7c7794e97635 /hw/intc
parentcee2dedb85b97e4976c83bea84064c3921b8b7ac (diff)
downloadfocaccia-qemu-146db9f91979db89a123ea10d2b825d3670d2b36.tar.gz
focaccia-qemu-146db9f91979db89a123ea10d2b825d3670d2b36.zip
qapi: dealloc visitor, implement visit_start_union
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-stable@nongnu.org
Reported-by: Fam Zheng <famz@redhat.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hw/intc')
0 files changed, 0 insertions, 0 deletions