We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fced98 commit 735be49Copy full SHA for 735be49
Parse/src/main/java/com/parse/ParseAWSRequest.java
@@ -54,9 +54,10 @@ public Void call() throws Exception {
54
long totalSize = response.getTotalSize();
55
long downloadedSize = 0;
56
InputStream responseStream = null;
57
+ FileOutputStream tempFileStream = null;
58
try {
59
responseStream = response.getContent();
- FileOutputStream tempFileStream = ParseFileUtils.openOutputStream(tempFile);
60
+ tempFileStream = ParseFileUtils.openOutputStream(tempFile);
61
62
int nRead;
63
byte[] data = new byte[32 << 10]; // 32KB
@@ -73,6 +74,7 @@ public Void call() throws Exception {
73
74
return null;
75
} finally {
76
ParseIOUtils.closeQuietly(responseStream);
77
+ ParseIOUtils.closeQuietly(tempFileStream);
78
}
79
80
}, ParseExecutors.io());
0 commit comments