diff --git a/pageant.c b/pageant.c index 626ae562..08811d27 100644 --- a/pageant.c +++ b/pageant.c @@ -1889,6 +1889,7 @@ int pageant_add_keyfile(Filename *filename, const char *passphrase, return PAGEANT_ACTION_FAILURE; } + sfree(skey->comment); ssh_key_free(skey->key); sfree(skey); sfree(response); @@ -1978,6 +1979,7 @@ int pageant_enum_keys(pageant_key_enum_fn_t callback, void *callback_ctx, callback(callback_ctx, fingerprint, cbkey.comment, &cbkey); sfree(fingerprint); sfree(cbkey.comment); + strbuf_free(cbkey.blob); } sfree(keylist);