tpm2-common: correctly free ECC data

The openssl set functions take copies of the data, so the
corresponding inputs still have to be freed.  Additionally separate
out the EC_GROUP allocation into its own function in preparation for
non-openssl defined curves.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 file changed