clear and free EC_GROUP object