mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07: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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user