gpg: Fix memory leak in ecc key generation.