Fix a memleak in ec_copy_parameters.