tpm2-software / tpm2-tss-engine

OpenSSL Engine for TPM2 devices
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
148 stars 97 forks source link

Fix allocation scopes #246

Closed AndreasFuchsTPM closed 2 years ago

AndreasFuchsTPM commented 2 years ago

Use Esys_Free for Esys allocated return parameters. Use OPENSSL_free for OPENSSL_malloc memory. Unify to use only OPENSSL_malloc instead of calloc.

Fixes: #245