This is an automated email from the ASF dual-hosted git repository.

linguini pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit eb65ea5612af0e6af4203760f3f1f8c3afbd2d17
Author: ligd <[email protected]>
AuthorDate: Wed Jan 22 13:07:19 2025 +0800

    env: Always call env_release in group_release
    
    Remove unnecessary #ifdef CONFIG_DISABLE_ENVIRON.
    This makes sure environment resources are always cleaned up,
    regardless of configuration.
    
    Signed-off-by: ligd <[email protected]>
---
 sched/group/group_leave.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sched/group/group_leave.c b/sched/group/group_leave.c
index 0ea281250de..470a3c49fb0 100644
--- a/sched/group/group_leave.c
+++ b/sched/group/group_leave.c
@@ -104,11 +104,9 @@ group_release(FAR struct task_group_s *group, uint8_t 
ttype)
 
   fdlist_free(&group->tg_fdlist);
 
-#ifndef CONFIG_DISABLE_ENVIRON
   /* Release all shared environment variables */
 
   env_release(group);
-#endif
 
   /* Destroy the mm_map list */
 

Reply via email to