commit | aa69d8fa1c40b6f1c6a41bda6565f7a4de2c8083 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Apr 12 18:09:48 2022 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Wed Apr 13 15:10:16 2022 +0200 |
tree | 543ebc267153f139e3a7951063125f1d653753fa | |
parent | a97ccedf6f36c01660a8f4aaff33a9761e52ebf3 [diff] |
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.