1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Fix memory leak in OpenSSL code

This commit is contained in:
Tim Rühsen 2014-11-19 12:09:04 +01:00
parent f518d6cea1
commit 0c1bff841b
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-11-19 Tim Ruehsen <tim.ruehsen@gmx.de>
* openssl.c (ssl_check_certificate): Fix memory leak
2014-11-19 Tim Ruehsen <tim.ruehsen@gmx.de>
* gnutls.c (ssl_init): Report load failure of cert files from

View File

@ -771,7 +771,7 @@ ssl_check_certificate (int fd, const char *host)
}
}
}
sk_GENERAL_NAME_free (subjectAltNames);
sk_GENERAL_NAME_pop_free(subjectAltNames, GENERAL_NAME_free);
if (host_in_octet_string)
ASN1_OCTET_STRING_free(host_in_octet_string);