commit | 5c3c96fd361f7ab6ae237af802d04fe31720da1b | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.org> | Thu Jan 23 11:53:13 2020 +0100 |
committer | William Lallemand <wlallemand@haproxy.org> | Thu Jan 23 11:57:39 2020 +0100 |
tree | 96d67f329514c5d1270f0f4cc5099ced82a81d0d | |
parent | b829dda57b4c8a44eff53682ed56492ad46ce3ad [diff] |
BUG/MINOR: ssl: memory leak w/ the ocsp_issuer This patch frees the ocsp_issuer in ssl_sock_free_cert_key_and_chain_contents(). Shoudl be backported in 2.1.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c index db9621b..38e95fa 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c
@@ -3126,6 +3126,10 @@ free(ckch->ocsp_response); ckch->ocsp_response = NULL; } + + if (ckch->ocsp_issuer) + X509_free(ocsp_issuer); + ckch->ocsp_issuer = NULL; } /*