imc_attestation: Fixed double free of tpm_version_info chunk

This commit is contained in:
Andreas Steffen 2021-01-07 12:59:20 +01:00
parent 08760dd927
commit 2889133cc0
1 changed files with 2 additions and 1 deletions

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);
}
}