mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
Fix bug where Vnode kept its Inode alive indefinitely.
This commit is contained in:
parent
033a42b580
commit
12a6963a5d
Notes:
sideshowbarker
2024-07-19 16:07:22 +09:00
Author: https://github.com/awesomekling
Commit: 12a6963a5d
2 changed files with 5 additions and 1 deletions
|
@ -198,6 +198,7 @@ void VFS::freeNode(Vnode* node)
|
|||
m_inode2vnode.remove(node->inode);
|
||||
node->inode.fs()->release();
|
||||
node->inode = InodeIdentifier();
|
||||
node->m_core_inode = nullptr;
|
||||
}
|
||||
if (node->m_characterDevice) {
|
||||
m_device2vnode.remove(encodedDevice(node->m_characterDevice->major(), node->m_characterDevice->minor()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue