mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
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>
This commit is contained in:
parent
4ae3c0e27f
commit
d55f295b2b
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue