Free all memory when shutting down. XXX not implemented for Posix.
[ghc-hetmet.git] / ghc / rts / Storage.c
index 4933854..5e00a57 100644 (file)
@@ -266,6 +266,7 @@ void
 exitStorage (void)
 {
     stat_exit(calcAllocated());
+    freeAllMBlocks();
 }
 
 /* -----------------------------------------------------------------------------