mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-23 18:09:35 -04:00
kernel: fix page leak on process termination
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user