Missing cleanup on escape from functional record update #21486
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
P-medium
Medium priority
Milestone
I was playing around with #21407, and I think I found a distinct bug in FRU – if a field initialiser escapes (panics/returns/
break
s), some of the fields in the original struct get leaked.For example:
This prints
Observe that the
Noisy(1)
is never destroyed.The text was updated successfully, but these errors were encountered: