Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit e2f8e32

Browse files
authored
Merge pull request #1305 from haskell/fix-leak-mpickering
Fix a memory leak found by mpickering
2 parents 70fb79e + b7fb445 commit e2f8e32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hie-plugin-api/Haskell/Ide/Engine/PluginsIdeMonads.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE BangPatterns #-}
12
{-# LANGUAGE DeriveGeneric #-}
23
{-# LANGUAGE DeriveFunctor #-}
34
{-# LANGUAGE DeriveAnyClass #-}
@@ -499,7 +500,7 @@ instance HasGhcModuleCache IdeM where
499500
tvar <- lift ask
500501
state <- liftIO $ readTVarIO tvar
501502
return (moduleCache state)
502-
setModuleCache mc = do
503+
setModuleCache !mc = do
503504
tvar <- lift ask
504505
liftIO $ atomically $ modifyTVar' tvar (\st -> st { moduleCache = mc })
505506

0 commit comments

Comments
 (0)