1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

kernel/clone_task: also destroy interrupt stack on failure

This commit is contained in:
daniel-k 2016-06-24 20:45:21 +02:00
parent 0ba2e482eb
commit 0384aa3443

View file

@ -409,8 +409,10 @@ int clone_task(tid_t* id, entry_point_t ep, void* arg, uint8_t prio)
kprintf("start new thread %d on core %d with stack address %p\n", i, core_id, stack);
out:
if (ret)
if (ret) {
destroy_stack(stack, DEFAULT_STACK_SIZE);
destroy_stack(ist, KERNEL_STACK_SIZE);
}
#if 0
if (core_id != CORE_ID)