From 202f01d4f8b28237d9f349f9ee91691ec220425a Mon Sep 17 00:00:00 2001 From: Yinan Zhang Date: Wed, 26 Aug 2020 14:52:25 -0700 Subject: [PATCH] Fix szind computation in profiling --- src/prof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prof.c b/src/prof.c index d50cbe34..4f451998 100644 --- a/src/prof.c +++ b/src/prof.c @@ -99,7 +99,7 @@ prof_malloc_sample_object(tsd_t *tsd, const void *ptr, size_t size, ptr); prof_info_set(tsd, edata, tctx); - szind_t szind = sz_size2index(size); + szind_t szind = sz_size2index(usize); malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock); /*