CLEANUP: log/proxy: fix comment in proxy_free_common()
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 11 Jun 2024 08:52:37 +0000 (10:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 12 Jun 2024 07:31:43 +0000 (09:31 +0200)
Thanks to previous commit, logformat expressions for default proxies are
also postchecked, adjusting a comment that suggests it's not the case.

(cherry picked from commit c6931a4f01a29cb4f36e0b70900a6c97a5a2bdda)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>

src/proxy.c

index eb39439..3acfdf6 100644 (file)
@@ -247,8 +247,7 @@ static inline void proxy_free_common(struct proxy *px)
        }
 
        /* ensure that remaining lf_expr that were not postchecked (ie: disabled
-        * or default proxy) don't keep a reference on the proxy which is about
-        * to be freed.
+        * proxy) don't keep a reference on the proxy which is about to be freed.
         */
        list_for_each_entry_safe(lf, lfb, &px->conf.lf_checks, list)
                LIST_DEL_INIT(&lf->list);