Merge "Move mallopt to correct section." am: 15eaaddef9
am: c613ed2ab2
Change-Id: I36ed519b1a3d42d97f2960622195584f0273d024
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 8e7a141..201e187 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -1776,6 +1776,9 @@
if (local_unload_list.contains(child)) {
continue;
} else if (child->is_linked() && child->get_local_group_root() != root) {
+ child->get_parents().remove_if([&] (const soinfo* parent) {
+ return parent == si;
+ });
external_unload_list.push_back(child);
} else if (child->get_parents().empty()) {
unload_list.push_back(child);