Fixed process not being removed from the process tree on
failed threadCreate during proc_start
JIRA:
@@ -296,8 +296,7 @@ int proc_start(void (*initthr)(void *), void *arg, const char *path)
perf_fork(process);
if (proc_threadCreate(process, initthr, NULL, 4, SIZE_KSTACK, NULL, 0, (void *)arg) < 0) {
- vm_kfree(process->path);
- vm_kfree(process);
+ proc_put(process);
return -EINVAL;
}
