zhangyu-duck opened a new pull request, #17836:
URL: https://github.com/apache/nuttx/pull/17836
## Summary
When a task exits, the memory should be released later, otherwise task may
continues try get mutex, this moment task'state is already inactive.
```c
nxtask_exit() ->
nxsched_release_tcb() ->
addrenv_leave() ->
addrenv_destroy() ->
kmm_free()
```
## Impact
optimization task exit process when system enable addrenv
## Testing
Just test it when task exit.
--
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]