diff options
Diffstat (limited to 'wrapper.c')
-rw-r--r-- | wrapper.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -40,7 +40,8 @@ void *xmalloc(size_t size) if (!ret && !size) ret = malloc(1); if (!ret) - die("Out of memory, malloc failed"); + die("Out of memory, malloc failed (tried to allocate %lu bytes)", + (unsigned long)size); } #ifdef XMALLOC_POISON memset(ret, 0xA5, size); |