diff --git a/components/TARGET_PSA/services/attestation/COMPONENT_SPE/psa_attestation_partition.c b/components/TARGET_PSA/services/attestation/COMPONENT_SPE/psa_attestation_partition.c index a550983814..1633637f58 100755 --- a/components/TARGET_PSA/services/attestation/COMPONENT_SPE/psa_attestation_partition.c +++ b/components/TARGET_PSA/services/attestation/COMPONENT_SPE/psa_attestation_partition.c @@ -235,10 +235,6 @@ static void psa_attest_inject_key(void) } } - free(public_key_data); - if (key_data != NULL) { - free(key_data); - } psa_reply(msg.handle, status); }