Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af4dcf57 authored by Jing Ji's avatar Jing Ji
Browse files

Close the GZIPOutputStream to release the deflater

Bug: 183378494
Test: atest CtsDropBoxManagerTestCases
Test: atest FrameworksServicesTests:com.android.server.DropBoxTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest#testAnr
Change-Id: I3828ce4648feea5868445be800fdf10c87efde74
parent a8d563cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));
            }