patacongo commented on pull request #1099:
URL: https://github.com/apache/incubator-nuttx/pull/1099#issuecomment-634607385


   > 255   /* Then activate the task at the provided priority */
   > 256
   > 257   ret = task_activate((FAR struct tcb_s *)tcb);
   > 258   if (ret < 0)
   > 259     {
   >           _kmm_free(tcb);_
   >           kumm_free(stack);
   >           return ret;
   > 262     }
   
   There is an error in that.  After task_init() is called, `sched_releasetcb() 
`should be called to free the TCB.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to