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