Memory Leak in new structured concurrency Network Framework API's

After implementing the new structured concurrency API's for Network framework, we are noticing a few memory leaks in the Network framework when using API's like onViabilityUpdate and onBetterPathUpdate. Whenever a previously established connection is disconnected, the NWConnection object is never released by the Network framework when we use the 2 API's mentioned. Irrespective of what goes inside these handlers(or leave it empty), the connection object is leaking. If I comment out the handlers, there is no memory leak. Posting this here in the forum to understand if others have encountered similar issues and found a workaround?

Raised a feedback assistant request with all the details and a sample app here: FB22339653

Answered by DTS Engineer in 881959022
Raised a feedback assistant request … FB22339653

Thanks for that. A bug report is clearly the correct path forward here.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Raised a feedback assistant request … FB22339653

Thanks for that. A bug report is clearly the correct path forward here.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Memory Leak in new structured concurrency Network Framework API's
 
 
Q