1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Fix a batch of resource leaks spotted by Coverity.

This commit is contained in:
Simon Tatham
2022-09-07 13:52:58 +01:00
parent 16d5bb7269
commit 1f6d93f0c8
4 changed files with 12 additions and 2 deletions

View File

@ -679,6 +679,8 @@ host_ca *host_ca_load(const char *name)
sfree(line);
}
fclose(fp);
if (eb) {
if (!hca->validity_expression) {
hca->validity_expression = cert_expr_expression(eb);