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 <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2025-01-22 13:07:19 +08:00
committed by Matteo Golin
parent dd76bf54d1
commit eb65ea5612
-2
View File
@@ -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 */