Fix an uninitialized variable read in xallocx().

This commit is contained in:
Jason Evans 2013-12-20 15:52:01 -08:00
parent 0a8696658f
commit 0405312921

View File

@ -1625,6 +1625,9 @@ je_xallocx(void *ptr, size_t size, size_t extra, int flags)
}
if (iralloct(ptr, size, extra, alignment, zero, true,
try_tcache_alloc, try_tcache_dalloc, arena) == NULL) {
if (config_stats == false && (config_valgrind == false
|| opt_valgrind == false))
old_usize = isalloc(ptr, false);
usize = old_usize;
goto label_not_moved;
}