imc_attestation: Fixed double free of tpm_version_info chunk

This commit is contained in:
Andreas Steffen
2021-01-08 11:00:15 +01:00
parent 08760dd927
commit 2889133cc0
+2 -1
View File
@@ -1039,7 +1039,8 @@ pts_t *pts_create(bool is_imc)
{
this->proto_caps |= PTS_PROTO_CAPS_T | PTS_PROTO_CAPS_D;
this->tpm_version = this->tpm->get_version(this->tpm);
this->tpm_version_info = this->tpm->get_version_info(this->tpm);
this->tpm_version_info = chunk_clone(
this->tpm->get_version_info(this->tpm));
load_aik(this);
}
}