If you can reproduce the leak with a trivial test project then:
you should file a bug about it, including your test project
it’s unlikely there will be any workaround
Please post your bug number, just for the record.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"