Skip to content

Commit

Permalink
Update tos_task.c
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Jer6y authored Aug 14, 2023
1 parent 3a56d3e commit 62f33e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/core/tos_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ __API__ k_err_t tos_task_create_dyn(k_task_t **task,
the_task->stk_base = stk_base;
err = tos_task_create(the_task, name, entry, arg, prio, stk_base, stk_size, timeslice);
if (err != K_ERR_NONE) {
TOS_CPU_INT_ENABLE();
task_free(the_task);
return err;
}
Expand Down

0 comments on commit 62f33e4

Please sign in to comment.