From 645e477c2ce7a59ac98bc86463826cf082a13ad8 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Fri, 14 Oct 2016 01:04:26 -0700 Subject: Ensure OpenDexFilesFromImage closes file to prevent file descriptor leak Test: m -j32 test-art-host Bug: 32095919 Change-Id: I44541edeb403a508e1b9794ee09fb1f55e3f42bf --- runtime/runtime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/runtime.cc') diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 9da0268c28..f4c28b9a53 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -851,7 +851,7 @@ static bool OpenDexFilesFromImage(const std::string& image_location, return false; } std::string error_msg; - std::unique_ptr elf_file(ElfFile::Open(file.release(), + std::unique_ptr elf_file(ElfFile::Open(file.get(), false, false, /*low_4gb*/false, -- cgit v1.2.3-59-g8ed1b