Release RevWalks and TreeWalks after the use.