Merge "Close heap dump ParcelFileDescriptor." into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-28 20:52:29 +00:00
committed by Android (Google) Code Review

View File

@@ -1170,6 +1170,8 @@ public final class ActivityThread extends ClientTransactionHandler {
} catch (IOException e) {
Slog.e(TAG, "Failed to duplicate heap dump file descriptor", e);
return;
} finally {
IoUtils.closeQuietly(fd);
}
dhd.finishCallback = finishCallback;
sendMessage(H.DUMP_HEAP, dhd, 0, 0, true /*async*/);