Fix another leak that also caused CPU usage to spike when running long time