mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-02 15:46:49 -10:00
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]>