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) {