[commit: ghc] master: Fix memory leak in CoreWriter (Trac #7702) (8bac590)

Simon Peyton Jones simonpj at microsoft.com
Fri Mar 1 18:53:21 CET 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/8bac590554087adb89d863dd55501c5e7aa25c2c

>---------------------------------------------------------------

commit 8bac590554087adb89d863dd55501c5e7aa25c2c
Author: Andrew Farmer <anfarmer at ku.edu>
Date:   Mon Feb 18 03:32:35 2013 -0600

    Fix memory leak in CoreWriter (Trac #7702)

>---------------------------------------------------------------

 compiler/simplCore/CoreMonad.lhs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/simplCore/CoreMonad.lhs b/compiler/simplCore/CoreMonad.lhs
index 5726cf5..6012322 100644
--- a/compiler/simplCore/CoreMonad.lhs
+++ b/compiler/simplCore/CoreMonad.lhs
@@ -731,7 +731,7 @@ data CoreReader = CoreReader {
 }
 
 data CoreWriter = CoreWriter {
-        cw_simpl_count :: SimplCount
+        cw_simpl_count :: !SimplCount
 }
 
 emptyWriter :: DynFlags -> CoreWriter





More information about the ghc-commits mailing list