summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2015-02-26 12:16:46 +0000
committerPeter Maydell <peter.maydell@linaro.org>2015-02-26 12:16:46 +0000
commit041ccc922ee474693a2869d4e3b59e920c739bc0 (patch)
tree36b046a650b26079b3cbf634ee9ae8fe19384319 /monitor.c
parent2559db069628981bfdc90637fac5bf1b4f4e8ef5 (diff)
parent912ae9c88669d0a0cbae1f20b8c80dde8e526251 (diff)
downloadqemu-041ccc922ee474693a2869d4e3b59e920c739bc0.tar.gz
Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging
* remotes/qmp-unstable/queue/qmp: qapi-types: add C99 index names to arrays monitor: Fix missing err = NULL in client_migrate_info() balloon: Fix typo hmp: Fix warning from smatch (wrong argument in function call) Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index 4f941e6d67..41900dad20 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1094,12 +1094,13 @@ static int client_migrate_info(Monitor *mon, const QDict *qdict,
const char *subject = qdict_get_try_str(qdict, "cert-subject");
int port = qdict_get_try_int(qdict, "port", -1);
int tls_port = qdict_get_try_int(qdict, "tls-port", -1);
- Error *err;
+ Error *err = NULL;
int ret;
if (strcmp(protocol, "spice") == 0) {
if (!qemu_using_spice(&err)) {
qerror_report_err(err);
+ error_free(err);
return -1;
}