]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: use qcc_release in case of init failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 18 Dec 2023 18:12:32 +0000 (19:12 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 20 Dec 2023 14:27:11 +0000 (15:27 +0100)
commitbcade776c2053e2c2a60301f4a89c93fd1654af1
tree3cf49a6d5ca50fb6e533fd1abbc6cf0a416de32a
parent3c38bb7ee100db95e0c4beaf184b933ab04985a1
MINOR: mux-quic: use qcc_release in case of init failure

qmux_init() may fail at different stage. In this case, an error is
returned and QCC allocated element are freed. Previously, extra care was
taken using different label to only liberate already allocate elements.

This patch removes the multi label and uses qcc_release(). This will be
simpler to ensure a QCC is always properly freed. The only important
thing is to ensure that mandatory fields are properly initialized to
NULL or equivalent to be able to use qcc_release() safely.
src/mux_quic.c