From: Marc-André Lureau Date: Thu, 7 Jul 2016 19:00:05 +0000 (+0200) Subject: tests: fix test-iov leaks X-Git-Tag: v2.8.0-rc0~154^2~18 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d55f295b2b5477528da601dba57880b0d5f24cb1;p=qemu-xen-unstable.git tests: fix test-iov leaks Spotted thanks to ASAN. Signed-off-by: Marc-André Lureau Reviewed-by: Eric Blake --- diff --git a/tests/test-iov.c b/tests/test-iov.c index 46ae25efd6..a22d71fd2c 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 }