fix (VFS): added node destruct call on node deletion
This commit is contained in:
parent
2105446463
commit
2fa608ac41
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue