mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05: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
Reference in a new issue