mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-22 12:31:07 +00:00
Report the correct size when tracing a realloc() call.
This commit is contained in:
parent
9414c8b8f1
commit
692852a349
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ calloc(size_t n, size_t size)
|
||||||
t_malloc_fail = 1;
|
t_malloc_fail = 1;
|
||||||
}
|
}
|
||||||
p = t_malloc(n * size);
|
p = t_malloc(n * size);
|
||||||
UTRACE_MALLOC(size, p);
|
UTRACE_MALLOC(n * size, p);
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
if (t_malloc_fatal)
|
if (t_malloc_fatal)
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Reference in a new issue