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.
This commit is contained in:
Andreas Kling
2019-09-27 19:10:52 +02:00
parent 57e73e4533
commit d5f3972012

View File

@@ -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()