acassis commented on code in PR #20435:
URL: https://github.com/apache/nuttx/pull/20435#discussion_r4165780969
##########
sched/group/group_create.c:
##########
@@ -287,7 +287,12 @@ int group_allocate(FAR struct tcb_s *tcb, uint8_t ttype)
}
#endif
- kmm_free(group);
+ if (group != &g_kthread_group)
Review Comment:
Please include a comment here. Why the group cannot be from a kthread? Is it
when a task depends on a kthread and this code could remove the kthread instead?
--
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]