Skip to content
Browse files
Fix memory leak of TPM key password
Signed-off-by: David Woodhouse <>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 14, 2012
1 parent 0d72e01 commit 6e4ce246106c7fa890d7b30ed6c722c2bf2f68b8
Showing with 2 additions and 0 deletions.
  1. +2 −0 gnutls.c
@@ -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,
strlen(pass), (void *)pass);
free (pass);

if (err) {
vpn_progress(vpninfo, PRG_ERR,
_("Failed to set key PIN: %s\n"),

0 comments on commit 6e4ce24

Please sign in to comment.