anchao commented on PR #17564:
URL: https://github.com/apache/nuttx/pull/17564#issuecomment-3678745358

   
   > Moreover, this patch does not solve the first problem I mentioned.
   > 
   > > When the main thread creates a child thread and performs a detach 
operation, there is a possibility that the main thread may have exited, but the 
main thread's TCB may not have been released.
   > 
   > By the way, if the main thread neither executes `join` nor `detach`, and 
exits before the child thread, a situation will occur where the main thread 
exits but the tcb is not released.
   > 
   > please check again, thanks.
   
   @wangzhi16 
   
   1. I have fixed the use after free issue; please review it again. 
https://github.com/apache/nuttx/pull/17578
   2. Memleak is not caused by my commit. You'll find that the problem persists 
even after reverting my commit. It's due to Xiaomi's changes to the message 
queue.


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to