Files
qemu/qapi
Michael Roth 4a58f3c2d8 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: [email protected]
Reported-by: Fam Zheng <[email protected]>
Suggested-by: Paolo Bonzini <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Michael Roth <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
(cherry picked from commit 146db9f919)
Signed-off-by: Michael Roth <[email protected]>
2015-01-04 13:44:04 -06:00
..
2014-06-23 11:01:25 -04:00
2014-06-23 11:01:25 -04:00