Skip to content

Commit 9de0094

Browse files
ronawhojasone
authored andcommitted
Fix a Valgrind regression in calloc().
This regression was caused by 3ef51d7 (Optimize the fast paths of calloc() and [m,d,sd]allocx().).
1 parent 05a9e4a commit 9de0094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jemalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ je_calloc(size_t num, size_t size)
17391739
ret = ialloc_body(num_size, true, &tsdn, &usize, true);
17401740
ialloc_post_check(ret, tsdn, usize, "calloc", true, true);
17411741
UTRACE(0, num_size, ret);
1742-
JEMALLOC_VALGRIND_MALLOC(ret != NULL, tsdn, ret, usize, false);
1742+
JEMALLOC_VALGRIND_MALLOC(ret != NULL, tsdn, ret, usize, true);
17431743
}
17441744

17451745
return (ret);

0 commit comments

Comments
 (0)