Fix spurious ptable assertion in the fork error path.

This commit is contained in:
Jonas 'Sortie' Termansen 2021-10-09 23:28:59 +02:00
parent 3048fdf7a1
commit db5b51d673
1 changed files with 2 additions and 2 deletions

View File

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