From 0cfe2231f9d4813595ec621337c2e51fa3689bd0 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Wed, 14 Oct 2015 16:07:50 +0530 Subject: [PATCH] DL_SIZE_IMPL also dereference addr DL_SIZE_IMPL also dereference addr, so call inside Null check statement. --- src/dlmalloc_ext_2_8_6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlmalloc_ext_2_8_6.c b/src/dlmalloc_ext_2_8_6.c index 0b2df5c..2b6b138 100644 --- a/src/dlmalloc_ext_2_8_6.c +++ b/src/dlmalloc_ext_2_8_6.c @@ -1379,8 +1379,8 @@ boost_cont_command_ret_t boost_cont_allocation_command if(!addr) addr = mspace_malloc_lockless(ms, limit_size); if(addr){ s_allocated_memory += chunksize(mem2chunk(addr)); + *received_size = DL_SIZE_IMPL(addr); } - *received_size = DL_SIZE_IMPL(addr); ret.first = addr; ret.second = 0; if(addr){