1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Add an assortment of missing frees and closes.

Coverity's resource-leak checker is on the ball as usual.
This commit is contained in:
Simon Tatham
2017-02-14 20:42:26 +00:00
parent 33f4c8303f
commit 12a080874f
11 changed files with 37 additions and 0 deletions

View File

@ -946,6 +946,7 @@ unsigned char *rfc4716_loadpub(FILE *fp, char **algorithm,
}
*q = '\0';
sfree(comment); /* *just* in case of multiple Comment headers */
comment = dupstr(line);
} else if (!strcmp(line, "Subject") ||
!strncmp(line, "x-", 2)) {