Fix tcaches_flush.

The regression was introduced in 3a1363b.
This commit is contained in:
Qi Wang 2018-11-08 16:20:48 -08:00 committed by Qi Wang
parent 7ee0b6cc37
commit cd2931ad9b

View File

@ -655,7 +655,7 @@ tcaches_flush(tsd_t *tsd, unsigned ind) {
tcache_t *tcache = tcaches_elm_remove(tsd, &tcaches[ind]);
malloc_mutex_unlock(tsd_tsdn(tsd), &tcaches_mtx);
if (tcache != NULL) {
tcache_destroy(tsd, tcache, false);
tcache_flush_cache(tsd, tcache);
}
}