diff options
author | Jason Evans <je@fb.com> | 2016-03-31 01:36:04 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2016-03-31 01:36:04 (GMT) |
commit | ce7c0f999bf7634078ec759f3d13290dbb34170c (patch) | |
tree | 70f5a8e93bf1231049406a70d60b2f03afeff599 /COPYING | |
parent | 0bc716ae27d1bd66faa8f165a2c4a4cf6bd8143f (diff) | |
download | jemalloc-ce7c0f999bf7634078ec759f3d13290dbb34170c.zip jemalloc-ce7c0f999bf7634078ec759f3d13290dbb34170c.tar.gz jemalloc-ce7c0f999bf7634078ec759f3d13290dbb34170c.tar.bz2 |
Fix potential chunk leaks.
Move chunk_dalloc_arena()'s implementation into chunk_dalloc_wrapper(),
so that if the dalloc hook fails, proper decommit/purge/retain cascading
occurs. This fixes three potential chunk leaks on OOM paths, one during
dss-based chunk allocation, one during chunk header commit (currently
relevant only on Windows), and one during rtree write (e.g. if rtree
node allocation fails).
Merge chunk_purge_arena() into chunk_purge_default() (refactor, no
change to functionality).
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions