X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f00017098478afe94af08f5473fe5e89f976e5cf..8a9ec85763809cd3e849d3b00750ba74222dee18:/sshpubk.c diff --git a/sshpubk.c b/sshpubk.c index 76aa3436..bd3c5e47 100644 --- a/sshpubk.c +++ b/sshpubk.c @@ -257,8 +257,8 @@ int rsakey_pubblob(const Filename *filename, void **blob, int *bloblen, *blob = rsa_public_blob(&key, bloblen); freersakey(&key); ret = 1; - fp = NULL; } + fp = NULL; /* loadrsakey_main unconditionally closes fp */ } else { error = "not an SSH-1 RSA file"; } @@ -679,7 +679,6 @@ struct ssh2_userkey *ssh2_load_userkey(const Filename *filename, cipher = 0; cipherblk = 1; } else { - sfree(encryption); goto error; }