How to reproduce:
1. Open the “UnityTestBes_External“ project
2. Open the “StartupScene“
3. Enter Play mode and wait for the Scene to change
4. Exit Play mode
5. Clear the Console
6. Navigate to Assets/Parameters/GeneratedCode/FlatBufferClasses, add a space to the “AnimalInfoFlatBuffer.cs“ script, and save
7. Observe the Console
Expected result: No allocation errors are seen
Actual result: Allocation errors are seen
Reproducible with: 2022.1.0a14, 2021.3.27f1
Could not test with: 2021.3.30f1, 2022.3.8f1, 2023.1.11f1, 2023.2.0b7, 2023.3.0a3 (errors)
Fixed in: 2022.1.0a15
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environment tested
Note: Make sure TempMemoryLeakValidation is enabled in Edit → Preferences → Diagnostics
Error: TLS Allocator ALLOC_TEMP_DBG_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 144