commit | 5c722edf2b6025538608e7190492452b058c6b1d | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Oct 25 20:15:40 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Oct 25 20:15:40 2018 +0000 |
tree | f82a6e80ce3f9bb332048de2ee1a214f932240ad | |
parent | c89a3971e94c30611c885e4c440eae2fd9937948 [diff] | |
parent | 48b69113972ff2d62238a4446a97037b6bd1630d [diff] |
Merge "linker: Fix fd leak"
diff --git a/linker/linker.cpp b/linker/linker.cpp index f085863..e866c3d 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp
@@ -1086,6 +1086,7 @@ fd = open_library_on_paths(zip_archive_cache, name, file_offset, needed_by->get_dt_runpath(), realpath); // Check if the library is accessible if (fd != -1 && !ns->is_accessible(*realpath)) { + close(fd); fd = -1; } }