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

Commit

Permalink
Merge pull request #1305 from haskell/fix-leak-mpickering
Browse files Browse the repository at this point in the history
Fix a memory leak found by mpickering
  • Loading branch information
alanz committed Jun 21, 2019
2 parents 70fb79e + b7fb445 commit e2f8e32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hie-plugin-api/Haskell/Ide/Engine/PluginsIdeMonads.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveAnyClass #-}
Expand Down Expand Up @@ -499,7 +500,7 @@ instance HasGhcModuleCache IdeM where
tvar <- lift ask
state <- liftIO $ readTVarIO tvar
return (moduleCache state)
setModuleCache mc = do
setModuleCache !mc = do
tvar <- lift ask
liftIO $ atomically $ modifyTVar' tvar (\st -> st { moduleCache = mc })

Expand Down

0 comments on commit e2f8e32

Please sign in to comment.