summaryrefslogtreecommitdiffstats
path: root/qga/channel.h
diff options
context:
space:
mode:
authorMarc-André Lureau2018-07-19 20:40:59 +0200
committerMichael Roth2018-07-24 01:54:26 +0200
commitae7da1e5f658ea21d96e565514de20ff2cf24fa1 (patch)
treeca868947a0261a2760017d0f3c2333c95b4b5b58 /qga/channel.h
parentqga-win: Handle fstrim for OSes lower than Win8 (diff)
downloadqemu-ae7da1e5f658ea21d96e565514de20ff2cf24fa1.tar.gz
qemu-ae7da1e5f658ea21d96e565514de20ff2cf24fa1.tar.xz
qemu-ae7da1e5f658ea21d96e565514de20ff2cf24fa1.zip
qga: process_event() simplification and leak fix
json_parser_parse_err() may return something else than a QDict, in which case we loose the object. Let's keep track of the original object to avoid leaks. When an error occurs, "qdict" contains the response, but we still check the "execute" key there. Untangle a bit this code, by having a clear error path. CC: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Cc: qemu-stable@nongnu.org Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qga/channel.h')
0 files changed, 0 insertions, 0 deletions