1
0
mirror of https://github.com/git/git.git synced 2024-11-18 20:03:54 +01:00

Merge branch 'maint'

* maint:
  xmalloc: include size in the failure message
This commit is contained in:
Junio C Hamano 2010-08-20 12:55:41 -07:00
commit f9c3360570

@ -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);