fixed leak in TestFlapping - refs #588