fix (VFS): added node destruct call on node deletion

This commit is contained in:
antifallobst 2023-04-20 16:07:38 +02:00
parent 2105446463
commit 2fa608ac41
1 changed files with 2 additions and 1 deletions

View File

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