Skip to content

Commit d55f8f7

Browse files
committed
[Distributed] ExecuteTarget: Add missing deallocation of substitutions buffer
1 parent e801e4e commit d55f8f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/Distributed/DistributedActorSystem.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ extension DistributedActorSystem {
188188
}
189189

190190
substitutionsBuffer = .allocate(capacity: subs.count)
191+
defer {
192+
substitutionsBuffer?.deallocate()
193+
}
191194

192195
for (offset, substitution) in subs.enumerated() {
193196
let element = substitutionsBuffer?.advanced(by: offset)

0 commit comments

Comments
 (0)