]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl_sock: Fix memory leak when disabling compression
authorIlya Shipitsin <chipitsine@gmail.com>
Fri, 24 May 2019 22:38:14 +0000 (03:38 +0500)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 May 2019 05:45:55 +0000 (07:45 +0200)
commite242f3dfb8ae2f27de9d10d90a783df05d5c849b
tree8a051afa6e2b72d3692719e95092261cdd1d8c8c
parent4438c6061d5a2ffd5b4251027038181af9b8dc22
BUG/MINOR: ssl_sock: Fix memory leak when disabling compression

according to manpage:

       sk_TYPE_zero() sets the number of elements in sk to zero. It
       does not free sk so after this call sk is still valid.

so we need to free all elements

[wt: seems like it has been there forever and should be backported
 to all stable branches]
src/ssl_sock.c