]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: httpclient-cli: Destroy http-client context if failing to start it
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 May 2026 12:56:20 +0000 (14:56 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 May 2026 15:50:50 +0000 (17:50 +0200)
commitc53256adbc17bb76840fdc8213cf8854454d850b
tree1e0aa01625095728f0153bf9ddd1798c2c681ad3
parent18c5cd6674756f5fd3517016810f0f208e0a8315
BUG/MINOR: httpclient-cli: Destroy http-client context if failing to start it

When the call to httpclient_start() failed, it is the caller responsibilty
to destroy the http-client context by calling httpclient_destroy(). It is
performed at several places but it was missing in the httpclient_cli
code. So let's fix it.

This patch must be backported as far as 2.6. On 3.2 and lower, it must be
applied on http_client.c.
src/httpclient_cli.c