You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call foo() from the body of a SwiftUI app, in applicationDidFinishLaunching, a main.swift executable, etc., to see. Then run the app, open the memory graph debugger, and you will see a 48 byte malloc leak.
The layout of type A, the reflection on an array of the same type and the destructuring pattern all seem to contribute to the leak. If any of these things changes slightly, the leak goes away.
The text was updated successfully, but these errors were encountered:
Environment
Xcode 12.3 (Swift 5.3)
Additional Detail from JIRA
md5: 99dfde31239a799123e9cf2aefe1aa07
Issue Description:
The following code causes a memory leak:
Call
foo()
from the body of a SwiftUI app, inapplicationDidFinishLaunching
, amain.swift
executable, etc., to see. Then run the app, open the memory graph debugger, and you will see a 48 byte malloc leak.The layout of type
A
, the reflection on an array of the same type and the destructuring pattern all seem to contribute to the leak. If any of these things changes slightly, the leak goes away.The text was updated successfully, but these errors were encountered: