Skip to content

Commit b8d4cf6

Browse files
committed
benchmarks: add missing autoreleasepool in DictionaryBridge benchmark
Fixes a leak rdar://problem/27601057
1 parent 35a8c00 commit b8d4cf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

benchmark/single-source/DictionaryBridge.swift

+2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ class Stuff {
5353

5454
@inline(never)
5555
public func run_DictionaryBridge(_ N: Int) {
56+
autoreleasepool {
5657
for _ in 1...100*N {
5758
_ = Stuff()
5859
}
60+
}
5961
}

0 commit comments

Comments
 (0)