The original test case on this ticket stopped producing the freeing warning in commit 8b0c3377906a6f991cd6c21a674bf9561d85e3cb in 5.25.7. That doesn't reflect any substantive difference relevant to this ticket. This test case still warns: $ perl -le '() = sort { *a = \1 } 1, 2' Attempt to free unreferenced scalar: SV 0x1e4b270, Perl interpreter: 0x1e24010. -zeframThread Previous