tpm2_import: properly cleanup resources on error paths
tpm2_import: properly cleanup resources on error paths

The resources allocated in the encrypt_seed_with_tpm2_rsa_public_key()
functions weren't properly cleaned up on the error paths, fix them.

Signed-off-by: Javier Martinez Canillas <8fdf2abf85d34ea8f3f979ef25dc1f25d94aca29@redhat.com>

martinezjavier/tpm2-tools,martinezjavier/tpm2-tools,01org/tpm2.0-tools,01org/tpm2.0-tools,01org/tpm2.0-tools,martinezjavier/tpm2-tools,martinezjavier/tpm2-tools