mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Minor memory leaks in Pageant client code.
This commit is contained in:
parent
b9c42bc9b3
commit
8677ee00fb
@ -1889,6 +1889,7 @@ int pageant_add_keyfile(Filename *filename, const char *passphrase,
|
|||||||
return PAGEANT_ACTION_FAILURE;
|
return PAGEANT_ACTION_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sfree(skey->comment);
|
||||||
ssh_key_free(skey->key);
|
ssh_key_free(skey->key);
|
||||||
sfree(skey);
|
sfree(skey);
|
||||||
sfree(response);
|
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);
|
callback(callback_ctx, fingerprint, cbkey.comment, &cbkey);
|
||||||
sfree(fingerprint);
|
sfree(fingerprint);
|
||||||
sfree(cbkey.comment);
|
sfree(cbkey.comment);
|
||||||
|
strbuf_free(cbkey.blob);
|
||||||
}
|
}
|
||||||
|
|
||||||
sfree(keylist);
|
sfree(keylist);
|
||||||
|
Loading…
Reference in New Issue
Block a user