Report the correct size when tracing a realloc() call.

This commit is contained in:
Dag-Erling Smørgrav 2017-02-19 18:13:07 +01:00
parent 9414c8b8f1
commit 692852a349

View file

@ -349,7 +349,7 @@ calloc(size_t n, size_t size)
t_malloc_fail = 1;
}
p = t_malloc(n * size);
UTRACE_MALLOC(size, p);
UTRACE_MALLOC(n * size, p);
if (p == NULL) {
if (t_malloc_fatal)
abort();