commit | 772db5e6d485707dc87d419dbb2c56a184b2128f | [log] [tgz] |
---|---|---|
author | Dimitry Ivanov <dimitry@google.com> | Fri Apr 21 16:44:48 2017 -0700 |
committer | Dimitry Ivanov <dimitry@google.com> | Fri Apr 21 17:59:40 2017 -0700 |
tree | 9e4f42b8688e3194168272aa379003786e37ce0e | |
parent | 59c1e60f8365faaf4e1a71d8dcc222c88e2dce65 [diff] |
loader: fix leak of child-to-parent links on dlclose() Use children instead of parents in is_recursive() - this allows us to remove code adding links from child to parent when loading a library. Bug: 36104177 Test: /data/nativetest/bionic-unit-tests/bionic-unit-tests32 --gtest_filter=dl* 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: I776d47de92101c6ba47f400205ccbfe8844a7cb8