gcd: cleanup