mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
All callers of qmp_build_error_object() duplicate the code to wrap it in a response object. Replace it by qmp_error_response() that captures the duplicated code, including error_free(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180703085358.13941-23-armbru@redhat.com> (cherry picked from commitcee32796ca
) Conflicts: include/qapi/qmp/dispatch.h qapi/qmp-dispatch.c qga/main.c * drop context dep oncb3e7f08ae
* prereq forae7da1e5f6
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>