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

Commit 32d41b1b authored by Shukang Zhou's avatar Shukang Zhou Committed by Android (Google) Code Review
Browse files

Merge "Close a file descriptor before losing its reference."

parents d7b92cf8 b9520e49
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21907,6 +21907,10 @@ public class ActivityManagerService extends IActivityManager.Stub
                    profilerInfo.profileFd = fd;
                    proc.thread.profilerControl(start, profilerInfo, profileType);
                    fd = null;
                    try {
                        mProfileFd.close();
                    } catch (IOException e) {
                    }
                    mProfileFd = null;
                } else {
                    stopProfilerLocked(proc, profileType);