From 2fa608ac41c8e65288b6c55995e0b86461131db2 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Thu, 20 Apr 2023 16:07:38 +0200 Subject: [PATCH] fix (VFS): added node destruct call on node deletion --- kernel/src/drivers/fs/vfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/src/drivers/fs/vfs.c b/kernel/src/drivers/fs/vfs.c index da0484b..53773c8 100644 --- a/kernel/src/drivers/fs/vfs.c +++ b/kernel/src/drivers/fs/vfs.c @@ -221,6 +221,7 @@ void vfs_file_delete(vfs_node_T* file) { break; } } + vfs_node_destruct(file); } void vfs_file_write(vfs_node_T* file, uint64_t position, uint64_t size, uint8_t* buffer_in) { @@ -274,7 +275,7 @@ vfs_node_T* vfs_directory_create(fs_T* filesystem, string_t path) { } void vfs_directory_delete(vfs_node_T* directory) { - + vfs_node_destruct(directory); } void vfs_init(boot_info_T* boot_info) {