]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: resolvers: Free new requester on error when linking a resolution
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 06:47:58 +0000 (08:47 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 14:33:56 +0000 (16:33 +0200)
commitbaf0924a504fccaffb43a5f1b673568f00411cf3
tree96f6767ead33ebd7e6daffa97e0ec777e7e2c5f3
parent95ee47fd32c55291d164b8ce231fff157735582f
BUG/MINOR: resolvers: Free new requester on error when linking a resolution

If an error is triggered while the requester was allocated, it is not
immediately released. It is not really a memory leak because the requester
will be reused laster, on a next attempt, or released on deinit. For a
do-resolv action, the requester is released with the stream. So no leak
here. But it is probably not expected to keep a newly allocated requester in
case of error.

This patch could be backported as far as 2.6.
src/resolvers.c