Skip to content
  • Ryan Scott's avatar
    Fix space leaks in dynLoadObjs (#16708) · 76e58890
    Ryan Scott authored and Marge Bot's avatar Marge Bot committed
    When running the test suite on a GHC built with the `quick` build
    flavour, `-fghci-leak-check` noticed some space leaks. Careful
    investigation led to `Linker.dynLoadObjs` being the culprit.
    Pattern-matching on `PeristentLinkerState` and a dash of `$!` were
    sufficient to fix the issue. (ht to mpickering for his suggestions,
    which were crucial to discovering a fix)
    
    Fixes #16708.
    76e58890