diff options
| author | Junio C Hamano <gitster@pobox.com> | 2010-08-20 12:55:41 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2010-08-20 12:55:41 -0700 |
| commit | f9c33605700e37b75279ed6ce4bffaad3eb0cf10 (patch) | |
| tree | 7c6b37102801db71543fb228c129eb4ff9d5777c | |
| parent | 09a0ec58ce57413dcb2b2cfb4b4ece11ad616e7b (diff) | |
| parent | 55c6e6dc38188d27b4ec0315db93d6c40725cdd6 (diff) | |
| download | git-f9c33605700e37b75279ed6ce4bffaad3eb0cf10.tar.xz | |
Merge branch 'maint'
* maint:
xmalloc: include size in the failure message
| -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); |
