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

Commit 7b68417f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "CachedAppOptimizer: fix fd leak." into sc-dev

parents e040263f d7fa4db7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ static int compactMemory(const std::vector<Vma>& vmas, int pid, int madviseType)

    int pidfd = syscall(__NR_pidfd_open, pid, 0);
    err = -errno;
    if (err < 0) {
    if (pidfd < 0) {
        // Skip compaction if failed to open pidfd with any error
        return err;
    }