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:
parent
05a9e4ac65
commit
9de0094e6e
@ -1739,7 +1739,7 @@ je_calloc(size_t num, size_t size)
|
|||||||
ret = ialloc_body(num_size, true, &tsdn, &usize, true);
|
ret = ialloc_body(num_size, true, &tsdn, &usize, true);
|
||||||
ialloc_post_check(ret, tsdn, usize, "calloc", true, true);
|
ialloc_post_check(ret, tsdn, usize, "calloc", true, true);
|
||||||
UTRACE(0, num_size, ret);
|
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);
|
return (ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user