From 3d355852609a21da3285c938653bb487009ae293 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 22 Sep 2021 20:39:56 +0200 Subject: free the mounts created in tests/vfs.c --- src/kernel/tests/vfs.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/kernel/tests/vfs.c b/src/kernel/tests/vfs.c index 7591b0e..8b450e5 100644 --- a/src/kernel/tests/vfs.c +++ b/src/kernel/tests/vfs.c @@ -92,6 +92,12 @@ TEST(vfs_mount_resolve) { TEST_WRAPPER("/dir/shadowed/", "/dir"); #undef TEST_WRAPPER + + while (mount != NULL) { + struct vfs_mount *tmp = mount; + mount = mount->prev; + kfree(tmp); + } } void tests_vfs(void) { -- cgit v1.2.3