mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Fix a memory leak in rsakey_pubblob
The line read from the input file was not freed after successfully loading an SSH1 key.
This commit is contained in:
parent
8afae2a5f8
commit
29d805a49e
@ -309,6 +309,7 @@ int rsakey_pubblob(const Filename *filename, void **blob, int *bloblen,
|
|||||||
*commentptr = commentp ? dupstr(commentp) : NULL;
|
*commentptr = commentp ? dupstr(commentp) : NULL;
|
||||||
*blob = rsa_public_blob(&key, bloblen);
|
*blob = rsa_public_blob(&key, bloblen);
|
||||||
freersakey(&key);
|
freersakey(&key);
|
||||||
|
sfree(line);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user