mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user