mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-11 23:17:34 +02:00
removing errx on failed heap allocation
This commit is contained in:
parent
35776a2bc3
commit
fa879e183c
1 changed files with 1 additions and 2 deletions
3
gc.c
3
gc.c
|
@ -169,8 +169,7 @@ sexp sexp_gc (sexp ctx, size_t *sum_freed) {
|
|||
sexp_heap sexp_make_heap (size_t size) {
|
||||
sexp_free_list free, next;
|
||||
sexp_heap h = (sexp_heap) malloc(sizeof(struct sexp_heap) + size);
|
||||
if (! h)
|
||||
errx(70, "out of memory allocating %zu byte heap, aborting\n", size);
|
||||
if (! h) return NULL;
|
||||
h->size = size;
|
||||
h->data = (char*) sexp_heap_align((sexp_uint_t)&(h->data));
|
||||
free = h->free_list = (sexp_free_list) h->data;
|
||||
|
|
Loading…
Add table
Reference in a new issue