summaryrefslogtreecommitdiff
path: root/src/kernel/tests/vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tests/vfs.c')
-rw-r--r--src/kernel/tests/vfs.c6
1 files changed, 6 insertions, 0 deletions
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) {