Search Issue Tracker


Fixed in 2023.2.12f1, 2023.3.0b9



Found in



Issue ID




Memory leak errors are shown in the Console when displaying a context menu item with a function whose name contains 32+ characters



How to reproduce:
1. Open the attached “contextmenu_32char_issue” project
2. Open the “SampleScene”
3. In the Hierarchy window, select the “longname” GameObject
4. In the Inspector, right-click the attached “Longname“ script to open the context menu
5. Observe the Console window

Expected result: No errors or warnings are shown
Actual result: A “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 33” error is shown

Reproducible in: 2023.2.0a9, 2023.2.10f1, 2023.3.0b7
Not reproducible in: 2021.3.35f1, 2022.3.19f1, 2023.2.0a8

Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested

Note: There is also a GameObject named “shortname” in the Scene whose context menu method name contains 31 characters where the issue does not reproduce

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.