mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
25057: better debug error on memory failure
This commit is contained in:
parent
63b0ca8f37
commit
8ab895baf0
3 changed files with 11 additions and 1 deletions
|
|
@ -958,7 +958,7 @@ malloc(MALLOC_ARG_T size)
|
|||
n = (size + M_HSIZE + M_ALLOC + m_pgsz - 1) & ~(m_pgsz - 1);
|
||||
|
||||
if (((char *)(m = (struct m_hdr *)sbrk(n))) == ((char *)-1)) {
|
||||
DPUTS(1, "MEM: allocation error at sbrk.");
|
||||
DPUTS1(1, "MEM: allocation error at sbrk, size %L.", n);
|
||||
unqueue_signals();
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue