projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34e46f6
)
tests: fix rsp leak in postcopy-test
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Mon, 18 Jul 2016 11:11:36 +0000
(15:11 +0400)
committer
Marc-André Lureau
<marcandre.lureau@redhat.com>
Thu, 8 Sep 2016 14:05:22 +0000
(18:05 +0400)
In all cases, even when the dict doesn't contain 'ram', the qmp response
must be unref.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/postcopy-test.c
patch
|
blob
|
history
diff --git
a/tests/postcopy-test.c
b/tests/postcopy-test.c
index 229e9e901a6a175d05095f38edae995e7670d94c..bf4e579554a3f0bda8afac6098c857df0da928c4 100644
(file)
--- a/
tests/postcopy-test.c
+++ b/
tests/postcopy-test.c
@@
-260,8
+260,8
@@
static uint64_t get_migration_pass(void)
} else {
rsp_ram = qdict_get_qdict(rsp_return, "ram");
result = qdict_get_try_int(rsp_ram, "dirty-sync-count", 0);
- QDECREF(rsp);
}
+ QDECREF(rsp);
return result;
}