]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: conn-stream: Use a dedicated function to conditionally remove a CS
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 Apr 2022 16:09:48 +0000 (18:09 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Apr 2022 13:10:16 +0000 (15:10 +0200)
commitaa69d8fa1c40b6f1c6a41bda6565f7a4de2c8083
tree543ebc267153f139e3a7951063125f1d653753fa
parenta97ccedf6f36c01660a8f4aaff33a9761e52ebf3
MINOR: conn-stream: Use a dedicated function to conditionally remove a CS

cs_free_cond() must now be used to remove a CS. cs_free() may be used on
error path to release a freshly allocated but unused CS. But in all other
cases cs_free_cond() must be used. This function takes care to release the
CS if it is possible (no app and detached from any endpoint).

In fact, this function is only used internally. From the outside,
cs_detach_* functions are used.
src/conn_stream.c