summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2017-04-21 16:44:48 -0700
committerDimitry Ivanov <dimitry@google.com>2017-04-21 17:59:40 -0700
commit772db5e6d485707dc87d419dbb2c56a184b2128f (patch)
tree9e4f42b8688e3194168272aa379003786e37ce0e /libc/malloc_hooks/malloc_hooks.cpp
parent59c1e60f8365faaf4e1a71d8dcc222c88e2dce65 (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
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions