]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: H2: Don't forget to free shared_rx_bufs on failure
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 22 Apr 2026 16:57:39 +0000 (18:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2026 06:12:46 +0000 (08:12 +0200)
commitdca4c379cebbc31f94f1c0128fe7b18e0d498805
tree39a0c2338f10f645c8dfdc3cbab8f1bfa0f73df6
parent0963070d4f5114a56ab9c71274f8d4c9e341412d
BUG/MINOR: H2: Don't forget to free shared_rx_bufs on failure

In h2_init(), if we have a failure while creating the h2c, and we
allocated shared_tx_bufs, don't forget to free it, otherwise we'll have
a memory leak.

This was introduced in 3.1 by commit a891534bfd ("MINOR: mux-h2: allocate
the array of shared rx bufs in the h2c"), so the fix should be backported
as far as 3.2.
src/mux_h2.c