mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 18:15:07 +00:00
Fix some issues uncovered by the spawn stress test.
This commit is contained in:
parent
f6179ad9f9
commit
3f3535213b
5 changed files with 9 additions and 7 deletions
|
@ -690,7 +690,8 @@ Process::~Process()
|
|||
ProcFS::the().remove_process(*this);
|
||||
system.nprocess--;
|
||||
|
||||
gdt_free_entry(selector());
|
||||
if (selector())
|
||||
gdt_free_entry(selector());
|
||||
|
||||
if (m_kernelStack) {
|
||||
kfree(m_kernelStack);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue