[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-2.7 v4 08/36] tests: fix test-iov leaks
From: |
marcandre . lureau |
Subject: |
[Qemu-devel] [PATCH for-2.7 v4 08/36] tests: fix test-iov leaks |
Date: |
Fri, 5 Aug 2016 12:23:53 +0400 |
From: Marc-André Lureau <address@hidden>
Spotted thanks to ASAN.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
tests/test-iov.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/test-iov.c b/tests/test-iov.c
index 46ae25e..a22d71f 100644
--- a/tests/test-iov.c
+++ b/tests/test-iov.c
@@ -208,6 +208,9 @@ static void test_io(void)
} while(k < j);
}
}
+ iov_free(iov, niov);
+ g_free(buf);
+ g_free(siov);
exit(0);
} else {
@@ -246,6 +249,10 @@ static void test_io(void)
test_iov_bytes(iov, niov, i, j - i);
}
}
+
+ iov_free(iov, niov);
+ g_free(buf);
+ g_free(siov);
}
#endif
}
--
2.9.0
- [Qemu-devel] [PATCH for-2.7 v4 03/36] glib-compat: add g_(s)list_free_full(), (continued)
- [Qemu-devel] [PATCH for-2.7 v4 03/36] glib-compat: add g_(s)list_free_full(), marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 04/36] qga: free the whole blacklist, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 05/36] qga: free remaining leaking state, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 06/36] tests: fix test-cutils leaks, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 07/36] tests: fix test-vmstate leaks, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 08/36] tests: fix test-iov leaks,
marcandre . lureau <=
- [Qemu-devel] [PATCH for-2.7 v4 09/36] tests: fix check-qom-interface leaks, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 10/36] tests: fix check-qom-proplist leaks, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 11/36] tests: fix small leak in test-io-channel-command, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 12/36] tests: fix leak in test-string-input-visitor, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 13/36] portio: keep references on portio, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 14/36] numa: do not leak NumaOptions, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 15/36] pc: simplify passing qemu_irq, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 16/36] pc: don't leak a20_line, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 17/36] machine: use class base init generated name, marcandre . lureau, 2016/08/05
- [Qemu-devel] [PATCH for-2.7 v4 18/36] acpi-build: fix array leak, marcandre . lureau, 2016/08/05