Avoid leak of rev