close input buffer when creating multpart form from streaming nsurl

This commit is contained in:
Max Lansing 2012-06-12 23:13:55 -07:00
parent d92462ef8c
commit 7399eaa7cc

View file

@ -830,6 +830,8 @@ static inline NSString * AFMultipartFormFinalBoundary() {
[self appendData:tempData];
bytesRead = [inputStream read:dataBuffer maxLength:kAFStreamToStreamBufferSize];
}
[inputStream close];
free(dataBuffer);
}