[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 35/37] tests: fix rsp leak in postcopy-test
From: |
marcandre . lureau |
Subject: |
[Qemu-devel] [PATCH v2 35/37] tests: fix rsp leak in postcopy-test |
Date: |
Thu, 28 Jul 2016 18:38:06 +0400 |
From: Marc-André Lureau <address@hidden>
In all cases, even when the dict doesn't contain 'ram', the qmp response
must be unref.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
tests/postcopy-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/postcopy-test.c b/tests/postcopy-test.c
index 74fa969..f6f6598 100644
--- a/tests/postcopy-test.c
+++ b/tests/postcopy-test.c
@@ -198,8 +198,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;
}
--
2.9.0
- [Qemu-devel] [PATCH v2 28/37] ipmi: free extern timer, (continued)
- [Qemu-devel] [PATCH v2 28/37] ipmi: free extern timer, marcandre . lureau, 2016/07/28
- [Qemu-devel] [PATCH v2 29/37] usb: free USBDevice.strings, marcandre . lureau, 2016/07/28
- [Qemu-devel] [PATCH v2 30/37] tests: free a bunch of qmp responses, marcandre . lureau, 2016/07/28
- [Qemu-devel] [PATCH v2 31/37] usb: free leaking path, marcandre . lureau, 2016/07/28
- [Qemu-devel] [PATCH v2 32/37] bus: simplify name handling, marcandre . lureau, 2016/07/28
- [Qemu-devel] [PATCH v2 33/37] tests: add qtest_add_data_func_full, marcandre . lureau, 2016/07/28
- [Qemu-devel] [PATCH v2 34/37] tests: pc-cpu-test leaks fixes, marcandre . lureau, 2016/07/28
- [Qemu-devel] [PATCH v2 35/37] tests: fix rsp leak in postcopy-test,
marcandre . lureau <=
- [Qemu-devel] [PATCH v2 37/37] tests: fix postcopy-test leaks, marcandre . lureau, 2016/07/28
- [Qemu-devel] [PATCH v2 36/37] ahci: fix sglist leak on retry, marcandre . lureau, 2016/07/28
- Re: [Qemu-devel] [PATCH v2 00/37] Various memory leak fixes, Eric Blake, 2016/07/28