1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2021-10-09 23:28:59 +02:00
parent 3048fdf7a1
commit db5b51d673

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