From: cacao Date: Mon, 16 Nov 1998 20:56:13 +0000 (+0000) Subject: heap_close bug fixed X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=1ac720183962c68c1ff6f8615b7dbb03814e9231;p=cacao.git heap_close bug fixed --- diff --git a/mm/heap.old.c b/mm/heap.old.c index adf10935b..a9172740b 100644 --- a/mm/heap.old.c +++ b/mm/heap.old.c @@ -799,7 +799,8 @@ void heap_close () MFREE (startbits, bitfieldtype, heapsize/BITFIELDBITS); MFREE (markbits, bitfieldtype, heapsize/BITFIELDBITS); MFREE (referencebits, bitfieldtype, heapsize/BITFIELDBITS); - chain_free (allglobalreferences); + if (allglobalreferences != NULL) + chain_free (allglobalreferences); }