Fix a double-free bug in -fexternal-interpreter
authorSimon Marlow <marlowsd@gmail.com>
Sat, 20 Feb 2016 07:39:34 +0000 (07:39 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Sat, 20 Feb 2016 08:53:20 +0000 (08:53 +0000)
commit234048577efc713a0630c58ebe813dafeaf5deeb
treed2bd9c3b7f11e5450e470007e51b512ea63ce1c8
parent3259bf658662e7052ae91de2fa27baae8c84b7fa
Fix a double-free bug in -fexternal-interpreter

Originally I planned to make this reference manually managed, but it
looks like at some point I gave it a finalizer on the GHC side, but
forgot to remove the manual free here.  The result is that ghc-iserv
could crash in getStablePtr sometimes when using TH.
libraries/ghci/GHCi/TH.hs