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:
Andreas Kling 2019-05-31 08:03:58 +02:00
parent d58eb3bf21
commit 3fbddcecd2

View file

@ -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;