From 46c3aa2c0e305d00ea9bfec8dae21436a436da86 Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Fri, 21 Apr 2017 17:44:25 -0700 Subject: [PATCH] loader: fix leak of child-to-parent links on dlclose() Remove the code adding link from child to parent. The link is not used anywhere in the linker for L release. Bug: 36104177 Test: manual - dlopen/dlclose libandroid.so 10 times and see how many blocks are used after each dlclose() - make sure they are constant. Change-Id: I57039e934ba233253ad7dce2e071833528460116 --- linker/linker.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/linker/linker.cpp b/linker/linker.cpp index cf657057e..9ade46da6 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -1539,7 +1539,6 @@ void soinfo::add_child(soinfo* child) { } this->children.push_front(child); - child->parents.push_front(this); } void soinfo::remove_all_links() {