diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-27 19:10:52 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-27 19:10:52 +0200 |
commit | d5f3972012c18e7bbf7343e3c4787f8adf51c637 (patch) | |
tree | 7e880bf2ca6da7de8b6dd6d2514f7e80e9145f74 | |
parent | 57e73e45339054eb60d5e4fa877fbc91de110d9d (diff) | |
download | serenity-d5f3972012c18e7bbf7343e3c4787f8adf51c637.zip |
Kernel: No need to manually deallocate kernel stack Region in ~Thread()
Since we're keeping this Region in an OwnPtr, it will be torn down when
we get to ~OwnPtr anyway.
-rw-r--r-- | Kernel/Thread.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp index 1a18f42f3e..9ced4e1806 100644 --- a/Kernel/Thread.cpp +++ b/Kernel/Thread.cpp @@ -121,9 +121,6 @@ Thread::~Thread() if (m_userspace_stack_region) m_process.deallocate_region(*m_userspace_stack_region); - - if (m_kernel_stack_region) - m_process.deallocate_region(*m_kernel_stack_region); } void Thread::unblock() |