1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38: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:
Tim Kosse 2017-01-23 19:04:50 +01:00 committed by Simon Tatham
parent 8afae2a5f8
commit 29d805a49e

View File

@ -309,6 +309,7 @@ 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;