heap_close bug fixed
authorcacao <none@none>
Mon, 16 Nov 1998 20:56:13 +0000 (20:56 +0000)
committercacao <none@none>
Mon, 16 Nov 1998 20:56:13 +0000 (20:56 +0000)
mm/heap.old.c

index adf10935b9670d5528943e0cdd60ca79aec0ef6c..a9172740b36cd429918ffda9e9141272b767457a 100644 (file)
@@ -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);
 }