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

Commit 669ea262 authored by Narayan Kamath's avatar Narayan Kamath Committed by Android Git Automerger
Browse files

am 5a7587fa: Fix file descriptor leak when opening invalid archives.

* commit '5a7587fa':
  Fix file descriptor leak when opening invalid archives.
parents 662ec915 5a7587fa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ ZipFileRO::~ZipFileRO() {
    const int32_t error = OpenArchive(zipFileName, &handle);
    if (error) {
        ALOGW("Error opening archive %s: %s", zipFileName, ErrorCodeString(error));
        CloseArchive(handle);
        return NULL;
    }