mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix spurious ptable assertion in the fork error path.
This commit is contained in:
parent
3048fdf7a1
commit
db5b51d673
1 changed files with 2 additions and 2 deletions
|
@ -182,8 +182,8 @@ Process::~Process() // process_family_lock taken
|
|||
assert(!root);
|
||||
assert(!threads_not_exiting_count);
|
||||
|
||||
assert(ptable);
|
||||
ptable->Free(pid);
|
||||
if ( ptable )
|
||||
ptable->Free(pid);
|
||||
ptable.Reset();
|
||||
tty.Reset();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue