Merge "Close heap dump ParcelFileDescriptor." into rvc-dev am: 48f0527199 am: a3fa90982f am: e492fa7501
Change-Id: I2788e8ee8c6711f56bc0569293250554fcd3b057
This commit is contained in:
@@ -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*/);
|
||||
|
||||
Reference in New Issue
Block a user