From: sof Date: Fri, 14 Mar 1997 02:24:54 +0000 (+0000) Subject: [project @ 1997-03-14 02:24:54 by sof] X-Git-Tag: Approximately_1000_patches_recorded~811 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a449ff3ef3824ff9db7a6a70fe48f6893558ce23;p=ghc-hetmet.git [project @ 1997-03-14 02:24:54 by sof] Free foreign objects on exit --- diff --git a/ghc/runtime/storage/SMinit.lc b/ghc/runtime/storage/SMinit.lc index 4224c9a..6de8ecb 100644 --- a/ghc/runtime/storage/SMinit.lc +++ b/ghc/runtime/storage/SMinit.lc @@ -23,6 +23,8 @@ A filehandle to which any storage-manager statistics should be written. rtsBool exitSM (smInfo *sm_info) { + /* Upon closing down the storage manager, we free all foreign objects */ + freeForeigns(sm_info->ForeignObjList); stat_exit(sm_info->hp - hp_start); return rtsTrue; /* I'm happy */