Fix a Valgrind regression in calloc().

This regression was caused by 3ef51d7f73
(Optimize the fast paths of calloc() and [m,d,sd]allocx().).
This commit is contained in:
Elliot Ronaghan 2016-06-07 14:27:24 -07:00 committed by Jason Evans
parent 05a9e4ac65
commit 9de0094e6e

View File

@ -1739,7 +1739,7 @@ je_calloc(size_t num, size_t size)
ret = ialloc_body(num_size, true, &tsdn, &usize, true);
ialloc_post_check(ret, tsdn, usize, "calloc", true, true);
UTRACE(0, num_size, ret);
JEMALLOC_VALGRIND_MALLOC(ret != NULL, tsdn, ret, usize, false);
JEMALLOC_VALGRIND_MALLOC(ret != NULL, tsdn, ret, usize, true);
}
return (ret);