2-line modification to fix memory leak while remaining compatible with GHC 7.4.