We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c520710 commit 4d46ec4Copy full SHA for 4d46ec4
Foundation/URLSession/URLSessionTask.swift
@@ -650,7 +650,7 @@ extension _ProtocolClient: URLProtocolClient {
650
}
651
652
653
- default: return
+ default: return
654
655
656
Foundation/URLSession/http/HTTPBodySource.swift
@@ -126,6 +126,7 @@ extension _HTTPBodyStreamSource: _HTTPBodySource {
126
if inputStream.hasBytesAvailable {
127
let buffer = UnsafeMutableRawBufferPointer.allocate(count: length)
128
guard let pointer = buffer.baseAddress?.assumingMemoryBound(to: UInt8.self) else {
129
+ buffer.deallocate()
130
return .error
131
132
let readBytes = self.inputStream.read(pointer, maxLength: length)
0 commit comments