commit | 04164f6d055c1052325a665bc9aa4837a5d2c1ae | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Oct 26 00:09:15 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Oct 26 00:09:15 2018 +0000 |
tree | f72da432890482cb4b9af811105317f44882f006 | |
parent | 5c722edf2b6025538608e7190492452b058c6b1d [diff] | |
parent | 5e62b34c0d6fa545b487b9b64fb4a04a0589bc13 [diff] |
Merge "Clean up bionic_macros.h a bit."
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; } }