From: Christopher Faulet Date: Thu, 23 Apr 2026 07:56:06 +0000 (+0200) Subject: BUG/MEDIUM: tcpcheck: Release temporary small chunk when retrying on http-check X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=cf9694474be1161253e6c70c8ebc22114fbb7e73;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: tcpcheck: Release temporary small chunk when retrying on http-check When a http request is sent during an http healthcheck, if an error is triggered while the output buffer is a small buffer, another attempt is made with a larger one. When this happens, the temporary chunk used to format headers must be released. No backport needed. --- diff --git a/src/tcpcheck.c b/src/tcpcheck.c index 28ffd8c74..5331619f1 100644 --- a/src/tcpcheck.c +++ b/src/tcpcheck.c @@ -1849,6 +1849,7 @@ enum tcpcheck_eval_ret tcpcheck_eval_send(struct check *check, struct tcpcheck_r htx_to_buf(htx, &check->bo); } if (b_is_small(&check->bo)) { + free_trash_chunk(tmp); check->state &= ~CHK_ST_USE_SMALL_BUFF; check_release_buf(check, &check->bo); TRACE_DEVEL("Send fail with small buffer retry with default one", CHK_EV_TCPCHK_SND|CHK_EV_TX_DATA, check);