Merge "Close the GZIPOutputStream to release the deflater" into sc-dev

This commit is contained in:
Jing Ji
2021-03-23 04:31:00 +00:00
committed by Android (Google) Code Review

View File

@@ -448,7 +448,7 @@ public final class DropBoxManagerService extends SystemService {
final GZIPOutputStream gzipOutputStream =
new GZIPOutputStream(new FileOutputStream(fd));
FileUtils.copy(in, gzipOutputStream);
gzipOutputStream.finish();
gzipOutputStream.close();
} else {
FileUtils.copy(in, new FileOutputStream(fd));
}