summaryrefslogtreecommitdiff
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
author Brian Carlstrom <bdc@google.com> 2016-10-17 15:27:26 +0000
committer android-build-merger <android-build-merger@google.com> 2016-10-17 15:27:26 +0000
commit2a539ab099ee2207200f34b461027cf46c37e00e (patch)
tree3e46e0bc30d55c81fd4e97536142d5711bebf72e /runtime/runtime.cc
parentf7fe4ed432fa3366a1565237363e0a7e8299a460 (diff)
parent645e477c2ce7a59ac98bc86463826cf082a13ad8 (diff)
Ensure OpenDexFilesFromImage closes file to prevent file descriptor leak
am: 645e477c2c Change-Id: I071d7c8a53641981673387295c51757e5e18e635
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc2
1 files changed, 1 insertions, 1 deletions
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<ElfFile> elf_file(ElfFile::Open(file.release(),
+ std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file.get(),
false,
false,
/*low_4gb*/false,