diff options
author | Josh Gao <jmgao@google.com> | 2017-03-07 23:05:08 -0800 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2017-03-07 23:24:50 -0800 |
commit | 5450f86b31287173278513eb8b4c8e73b9fdd3ae (patch) | |
tree | adfd4a7a9cd2fb1d5ef7dbf724b12bbd6f0baeb5 /libc/stdio/stdio_ext.cpp | |
parent | cdf19c84e8c10f5afa079790e5a2b0a55a3599e9 (diff) |
Fix leak of bionic TLS when threads are detached.
__pthread_internal_free doesn't happen on threads that are detached,
causing the bionic TLS allocation (and guard pages) to be leaked.
Fix the leak, and name the allocations to make things apparent if this
ever happens again.
Bug: http://b/36045112
Test: manually ran a program that detached empty threads
Change-Id: Id1c7852b7384474244f7bf5a0f7da54ff962e0a1
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions