ecc: Fix possible memory leakage in parameter check of eddsa.