commit | 09a0769ba7a3d139168e606e4295f8002861355f | [log] [tgz] |
---|---|---|
author | Jason Evans <jasone@canonware.com> | Fri Mar 30 12:11:03 2012 -0700 |
committer | Jason Evans <jasone@canonware.com> | Fri Mar 30 12:11:03 2012 -0700 |
tree | a22c69f86af8d82868624009dc79af89579fabb9 | |
parent | 3c2ba0dcbc2f4896a892fad84d5dcf5bd4c30a81 [diff] |
Work around TLS deallocation via free(). glibc uses memalign()/free() to allocate/deallocate TLS, which means that it is unsafe to set TLS variables as a side effect of free() -- they may already be deallocated. Work around this by avoiding tcache_create() within free(). Reported by Mike Hommey.