From cd2931ad9bbd78208565716ab102e86d858c2fff Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Thu, 8 Nov 2018 16:20:48 -0800 Subject: [PATCH] Fix tcaches_flush. The regression was introduced in 3a1363b. --- src/tcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcache.c b/src/tcache.c index bc9e435d..7859da94 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -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); } }