Commit 6e4ce246 authored by David Woodhouse's avatar David Woodhouse

Fix memory leak of TPM key password

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 0d72e018
......@@ -629,6 +629,8 @@ static int load_tpm_key(struct openconnect_info *vpninfo, gnutls_datum_t *fdata,
err = Tspi_Policy_SetSecret(vpninfo->tpm_key_policy,
TSS_SECRET_MODE_PLAIN,
strlen(pass), (void *)pass);
free (pass);
if (err) {
vpn_progress(vpninfo, PRG_ERR,
_("Failed to set key PIN: %s\n"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment