Merge "CachedAppOptimizer: fix fd leak." into sc-dev am: 7b68417fe8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13665789 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I7517de69aafe111fa552fc635f39acf088257e17
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user