ecc: Fix memory leak.