[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 35/37] tests: fix rsp leak in postcopy-test
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 35/37] tests: fix rsp leak in postcopy-test |
Date: |
Wed, 20 Jul 2016 07:48:03 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 07/19/2016 02:54 AM, address@hidden wrote:
> 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>
> ---
> tests/postcopy-test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Eric Blake <address@hidden>
>
> 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;
> }
>
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 30/37] usb: free USBDevice.strings, (continued)
- [Qemu-devel] [PATCH 30/37] usb: free USBDevice.strings, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 31/37] tests: free a bunch of qmp responses, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 32/37] usb: free leaking path, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 33/37] bus: simplify name handling, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 34/37] tests: pc-cpu-test, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 36/37] ahci: fix sglist leak on retry, marcandre . lureau, 2016/07/19
- [Qemu-devel] [PATCH 35/37] tests: fix rsp leak in postcopy-test, marcandre . lureau, 2016/07/19
- Re: [Qemu-devel] [PATCH 35/37] tests: fix rsp leak in postcopy-test,
Eric Blake <=
- [Qemu-devel] [PATCH 37/37] tests: fix postcopy-test leaks, marcandre . lureau, 2016/07/19