diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-07-07 21:00:05 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-09-08 17:57:32 +0400 |
commit | d55f295b2b5477528da601dba57880b0d5f24cb1 (patch) | |
tree | 13de79f58ff8a3fc6c7bb2d6650d5af3e9a1f3d9 /tests/test-iov.c | |
parent | 4ae3c0e27fff7e41fd75fc63a35703bc64785863 (diff) |
tests: fix test-iov leaks
Spotted thanks to ASAN.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/test-iov.c')
-rw-r--r-- | tests/test-iov.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 } |