mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
Kernel: Discard a process's ELFLoader on finalization.
We don't need after that point, and throwing it out might free up some cached data used for backtraces.
This commit is contained in:
parent
d58eb3bf21
commit
3fbddcecd2
1 changed files with 2 additions and 0 deletions
|
@ -2012,6 +2012,8 @@ void Process::finalize()
|
|||
m_tty = nullptr;
|
||||
m_executable = nullptr;
|
||||
m_cwd = nullptr;
|
||||
m_elf_loader = nullptr;
|
||||
|
||||
disown_all_shared_buffers();
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue