projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
449d4c6
)
[project @ 1997-03-14 02:24:54 by sof]
author
sof
<unknown>
Fri, 14 Mar 1997 02:24:54 +0000
(
02:24
+0000)
committer
sof
<unknown>
Fri, 14 Mar 1997 02:24:54 +0000
(
02:24
+0000)
Free foreign objects on exit
ghc/runtime/storage/SMinit.lc
patch
|
blob
|
history
diff --git
a/ghc/runtime/storage/SMinit.lc
b/ghc/runtime/storage/SMinit.lc
index
4224c9a
..
6de8ecb
100644
(file)
--- 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 */