Reproduction steps:
1. Open the attached “repro_IN-96103“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. In the Hierarchy, select “Subscene → Cube → Sphere“
4. Open the Scene view and move around the “Sphere“ GameObject
5. Observe the Console
Expected result: An error indicating an exception is thrown due to “WorldUpdateAllocator“ being rewound after a rebake
Actual result: No errors are thrown, which signals a memory leak
Reproducible with: 1.3.10 (2022.3.59f1, 6000.0.41f1, 6000.1.0b9, 6000.2.0a6)
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested
Note: User points out that if you would make this baking system allocate 1 MB every update using the “WorldUpdateAllocator” method instead, you would see the memory grow consistently until the Subscene would be closed