mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +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);
|
fdlist_free(&group->tg_fdlist);
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_ENVIRON
|
|
||||||
/* Release all shared environment variables */
|
/* Release all shared environment variables */
|
||||||
|
|
||||||
env_release(group);
|
env_release(group);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Destroy the mm_map list */
|
/* Destroy the mm_map list */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user