]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: handle properly alloc error in qcs_new()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 12 Dec 2022 08:59:50 +0000 (09:59 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 12 Dec 2022 13:54:39 +0000 (14:54 +0100)
commit4b167006fd574d6377cfc59afb31b167d8694c11
tree3c25981b5149c3109e427328051c9d53f52fb3d5
parent641a65ff3cccd394eed49378c6ccdb8ba0a101a7
BUG/MINOR: mux-quic: handle properly alloc error in qcs_new()

Use qcs_free() on allocation failure in qcs_new() This ensures that all
qcs content is properly deallocated and prevent memleaks. Most notably,
qcs instance is now removed from qcc tree.

This bug is labelled as MINOR as it occurs only on qcs allocation
failure due to memory exhaustion.

This must be backported up to 2.6.
src/mux_quic.c