mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 21:05:45 +00:00
kernel: fix page leak on process termination
This commit is contained in:
parent
7a556e94e4
commit
12fe8c5b76
4 changed files with 91 additions and 25 deletions
|
@ -171,6 +171,12 @@ void KProcess::Finalize() {
|
|||
m_resource_limit->Close();
|
||||
}
|
||||
|
||||
// Clear expensive resources, as the destructor is not called for guest objects.
|
||||
for (auto& interface : m_arm_interfaces) {
|
||||
interface.reset();
|
||||
}
|
||||
m_exclusive_monitor.reset();
|
||||
|
||||
// Perform inherited finalization.
|
||||
KSynchronizationObject::Finalize();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue