vTaskDelay remove tasks from ready, suspend, delay, delay overflow, to temination list but the memory of the deleted task (his TCB and stack) is not yet cleaned up.
In idle task (in function prvCheckTasksWaitingTermination()) remove tasks that are listed in the termination list and free the task TCB (only the TCB).
Can you please tell me where the deleted task stack is freed ?
Think you answered this yourself here:
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.