[GHC] #14565: Memory leak switching from -O1 to -O2