Fix error case in tfork(2).
This commit is contained in:
parent
94a7433cf0
commit
c0ad3d8a80
|
@ -719,7 +719,7 @@ Process* Process::Fork()
|
||||||
kthread_mutex_unlock(&ptrlock);
|
kthread_mutex_unlock(&ptrlock);
|
||||||
|
|
||||||
if ( !(clone->program_image_path = String::Clone(program_image_path)) )
|
if ( !(clone->program_image_path = String::Clone(program_image_path)) )
|
||||||
failure = false;
|
failure = true;
|
||||||
|
|
||||||
if ( string_table && (clone->string_table = new char[string_table_length]) )
|
if ( string_table && (clone->string_table = new char[string_table_length]) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue