BUG/MINOR: ssl: memleak of the struct cert_key_and_chain
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 8 Apr 2020 15:38:27 +0000 (17:38 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 9 Apr 2020 13:49:00 +0000 (15:49 +0200)
commite3d2d4fb283615831379b971ed23958d45b941ca
treeb7af5530eb360cc26825d8e7b2fa6282888a5639
parentc688a205a703fbffa195b310742d47f4abd9ba07
BUG/MINOR: ssl: memleak of the struct cert_key_and_chain

Free the struct cert_key_and_chain when calling ckchs_free(),
a memory leak can occur when using 'commit ssl cert'.

Must be backported to 2.1.

(cherry picked from commit 8621ac5570a7cd225005f35808616d28a9774e88)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
src/ssl_sock.c