diff options
author | Qi Wang <interwq@gwu.edu> | 2019-07-24 16:12:06 -0700 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2019-07-24 18:30:54 -0700 |
commit | bc0998a9052957584b6944b6f43fffe0648f603e (patch) | |
tree | 3e1de13f5fcd4efc56525dcfd59e4c6009dd6035 /src | |
parent | 1d148f353a2c71bc12fd066e467649fd17df3c95 (diff) |
Invoke arena_dalloc_promoted() properly w/o tcache.
When tcache was disabled, the dalloc promoted case was missing.
Diffstat (limited to 'src')
-rw-r--r-- | src/arena.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arena.c b/src/arena.c index a44d0da3..ba50e410 100644 --- a/src/arena.c +++ b/src/arena.c @@ -1610,7 +1610,7 @@ arena_dalloc_promoted(tsdn_t *tsdn, void *ptr, tcache_t *tcache, assert(bumped_usize == SC_LARGE_MINCLASS); safety_check_verify_redzone(ptr, usize, bumped_usize); } - if (bumped_usize <= tcache_maxclass) { + if (bumped_usize <= tcache_maxclass && tcache != NULL) { tcache_dalloc_large(tsdn_tsd(tsdn), tcache, ptr, sz_size2index(bumped_usize), slow_path); } else { |