X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshpubk.c;h=5dacc97d70a329e1ee9235e847ee04cf8d3769a9;hb=33f4c8303f78f0c6035779f731d6a668b01b8c16;hp=0323335ee0bfb0e98ae18de25538627bb8313e7b;hpb=8fdeb3a95cc3d7dce5629fc22e309eb3c996f44d;p=PuTTY.git diff --git a/sshpubk.c b/sshpubk.c index 0323335e..5dacc97d 100644 --- a/sshpubk.c +++ b/sshpubk.c @@ -309,6 +309,8 @@ int rsakey_pubblob(const Filename *filename, void **blob, int *bloblen, *commentptr = commentp ? dupstr(commentp) : NULL; *blob = rsa_public_blob(&key, bloblen); freersakey(&key); + sfree(line); + fclose(fp); return 1; not_public_either: @@ -1089,6 +1091,7 @@ unsigned char *openssh_loadpub(FILE *fp, char **algorithm, *commentptr = comment; else sfree(comment); + sfree(line); return pubblob; error: