X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/6e3c47cb9cf52992ff76e7e9795ea37fe6a884db..772e31660471d86323fcf959c9cbde9861e7b4d9:/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; }