Skip to content

Commit f9db32c

Browse files
committed
[swift-inspect] stop leaking memory in Windows heap iteration
1 parent 6221b29 commit f9db32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/swift-inspect/Sources/swift-inspect/WindowsRemoteProcess.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ internal final class WindowsRemoteProcess: RemoteProcess {
5959
}
6060
}
6161

62-
static var Free: FreeFunction {
62+
static var Free: FreeFunction? {
6363
return { (_, bytes, _) in
6464
free(UnsafeMutableRawPointer(mutating: bytes))
6565
}

0 commit comments

Comments
 (0)