changeset 52837:1bbf3f566879

(lisp_align_malloc): If BASE is 0, call memory_full.
author Richard M. Stallman <rms@gnu.org>
date Mon, 13 Oct 2003 18:45:03 +0000
parents a832ae359532
children 246c94760bee
files src/alloc.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Mon Oct 13 18:44:22 2003 +0000
+++ b/src/alloc.c	Mon Oct 13 18:45:03 2003 +0000
@@ -756,6 +756,11 @@
 #else
       base = malloc (ABLOCKS_BYTES);
       abase = ALIGN (base, BLOCK_ALIGN);
+      if (base == 0)
+	{
+	  UNBLOCK_INPUT;
+	  memory_full ();
+	}
 #endif
 
       aligned = (base == abase);