mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
(lisp_align_malloc): If BASE is 0, call memory_full.
This commit is contained in:
parent
499858c56d
commit
4532fdde32
1 changed files with 5 additions and 0 deletions
|
|
@ -756,6 +756,11 @@ lisp_align_malloc (nbytes, type)
|
|||
#else
|
||||
base = malloc (ABLOCKS_BYTES);
|
||||
abase = ALIGN (base, BLOCK_ALIGN);
|
||||
if (base == 0)
|
||||
{
|
||||
UNBLOCK_INPUT;
|
||||
memory_full ();
|
||||
}
|
||||
#endif
|
||||
|
||||
aligned = (base == abase);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue