aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c
index f62ae125408..e627af6c071 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -989,13 +989,11 @@ lisp_align_malloc (size_t nbytes, enum mem_type type)
989 free_ablock = free_ablock->x.next_free; 989 free_ablock = free_ablock->x.next_free;
990 990
991#if GC_MARK_STACK && !defined GC_MALLOC_CHECK 991#if GC_MARK_STACK && !defined GC_MALLOC_CHECK
992 if (val && type != MEM_TYPE_NON_LISP) 992 if (type != MEM_TYPE_NON_LISP)
993 mem_insert (val, (char *) val + nbytes, type); 993 mem_insert (val, (char *) val + nbytes, type);
994#endif 994#endif
995 995
996 MALLOC_UNBLOCK_INPUT; 996 MALLOC_UNBLOCK_INPUT;
997 if (!val && nbytes)
998 memory_full ();
999 997
1000 eassert (0 == ((uintptr_t) val) % BLOCK_ALIGN); 998 eassert (0 == ((uintptr_t) val) % BLOCK_ALIGN);
1001 return val; 999 return val;