]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: dns: Release answer items when a DNS resolution is freed
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jul 2020 13:55:49 +0000 (15:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jul 2020 14:43:07 +0000 (16:43 +0200)
commit010ab35a9118daf17a670fb2b42e40447f967f7c
tree0b0aaeed958b1386ebbc3e1084feada5b504a67a
parent5098a08c2fafb0d9513996729d2a30c9785378f3
BUG/MEDIUM: dns: Release answer items when a DNS resolution is freed

When a DNS resolution is freed, the remaining items in .ar_list and .answer_list
are also released. It must be done to avoid a memory leak. And it is the last
chance to release these objects. I've honestly no idea if there is a better
place to release them earlier. But at least, there is no more leak.

This patch should solve the issue #222. It must be backported, at least, as far
as 2.0, and probably, with caution, as far as 1.8 or 1.7.
src/dns.c