You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "wangzhi16 (via GitHub)" <gi...@apache.org> on 2026/01/01 00:21:30 UTC

Re: [PR] sched/task: fix Redundant memory allocation. [nuttx]

wangzhi16 commented on code in PR #17739:
URL: https://github.com/apache/nuttx/pull/17739#discussion_r2656002311


##########
sched/task/task_fork.c:
##########
@@ -137,7 +137,7 @@ FAR struct tcb_s *nxtask_setup_fork(start_t retaddr)
 
   /* Allocate a TCB for the child task. */
 
-  child = kmm_zalloc(sizeof(struct tcb_s) + sizeof(struct task_group_s));
+  child = kmm_zalloc(sizeof(struct tcb_s));

Review Comment:
   Done.



-- 
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-unsubscribe@nuttx.apache.org

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