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:
354672b
)
fix bug in memInventory() giving false memory leak errors
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 22 Nov 2006 10:16:04 +0000
(10:16 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 22 Nov 2006 10:16:04 +0000
(10:16 +0000)
fixes ffi009(threaded1)
rts/sm/Storage.c
patch
|
blob
|
history
diff --git
a/rts/sm/Storage.c
b/rts/sm/Storage.c
index
b7028d5
..
e4390da
100644
(file)
--- a/
rts/sm/Storage.c
+++ b/
rts/sm/Storage.c
@@
-1148,7
+1148,7
@@
memInventory(void)
// count the blocks containing executable memory
exec_blocks = 0;
for (bd = exec_block; bd; bd = bd->link) {
- exec_blocks = bd->blocks;
+ exec_blocks += bd->blocks;
}
/* count the blocks on the free list */