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 openssh_loadpub

The line read from the input file was not freed after successfully
loading an OpenSSH key.
This commit is contained in:
Tim Kosse 2017-01-23 19:10:40 +01:00 committed by Simon Tatham
parent 29d805a49e
commit 737cb2d24e

View File

@ -1091,6 +1091,7 @@ unsigned char *openssh_loadpub(FILE *fp, char **algorithm,
*commentptr = comment;
else
sfree(comment);
sfree(line);
return pubblob;
error: