summaryrefslogtreecommitdiff
path: root/src/kernel/tests/vfs.c
diff options
context:
space:
mode:
authordzwdz2021-09-22 20:39:56 +0200
committerdzwdz2021-09-22 20:39:56 +0200
commit3d355852609a21da3285c938653bb487009ae293 (patch)
tree276621d282df11cc5d9688e7ee1003ba63226f18 /src/kernel/tests/vfs.c
parent1ae9c4e79f2fa1f44ccad464338542558780a48d (diff)
free the mounts created in tests/vfs.c
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) {