Fix memory leak in CoreWriter (Trac #7702)
authorAndrew Farmer <anfarmer@ku.edu>
Mon, 18 Feb 2013 09:32:35 +0000 (03:32 -0600)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 1 Mar 2013 13:09:25 +0000 (13:09 +0000)
compiler/simplCore/CoreMonad.lhs

index 5726cf5..6012322 100644 (file)
@@ -731,7 +731,7 @@ data CoreReader = CoreReader {
 }
 
 data CoreWriter = CoreWriter {
-        cw_simpl_count :: SimplCount
+        cw_simpl_count :: !SimplCount
 }
 
 emptyWriter :: DynFlags -> CoreWriter