pussuw commented on PR #2159:
URL: https://github.com/apache/nuttx-apps/pull/2159#issuecomment-1782786497

   The kmm leak happens because kernel memory that is supposed to be freed, 
goes into the free delaylist:
   
   ```
     if (mm_lock(heap) < 0)
       {
         /* Meet -ESRCH return, which means we are in situations
          * during context switching(See mm_lock() & gettid()).
          * Then add to the delay list.
          */
         _alert("Delaylist! %p\n", mem);
         add_delaylist(heap, mem);
         return;
       }
   ```
   
   At least the kernel heap refuses to de-allocate, I suspect tcb and group 
won't de-allocate either. Will have to continue next week.


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to