[SR-6381] Indirect enum triggers memory leak or crash #48931
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
memory leak
bug: Memory leak
Attachment: Download
Environment
swift --version
Apple Swift version 4.0.2 (swift-4.0.2-RELEASE)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: 9c2a463f9c648470680d88c17c90a71d
Issue Description:
I tracked down a memory leak in our production code to an unbalanced retain when operating on an indirect enum.
I'm attaching SwiftPM package with a minimal repro. Decompress and run with:
The text was updated successfully, but these errors were encountered: