]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: deinit: remove codes for cleaning p->block_rules
authorGodbach <nylzhaowei@gmail.com>
Tue, 9 Jun 2015 11:41:52 +0000 (19:41 +0800)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Jun 2015 13:35:29 +0000 (15:35 +0200)
Since all rules listed in p->block_rules have been moved to the beginning of
the http-request rules in check_config_validity(), there is no need to clean
p->block_rules in deinit().

Signed-off-by: Godbach <nylzhaowei@gmail.com>
src/haproxy.c

index df48990c91455f06c3f3d19295cb5629ec01cff4..d45914f59f8d1800de6a17090e68bbae0e241e2e 100644 (file)
@@ -1291,12 +1291,6 @@ void deinit(void)
                        free(cwl);
                }
 
-               list_for_each_entry_safe(cond, condb, &p->block_rules, list) {
-                       LIST_DEL(&cond->list);
-                       prune_acl_cond(cond);
-                       free(cond);
-               }
-
                list_for_each_entry_safe(cond, condb, &p->mon_fail_cond, list) {
                        LIST_DEL(&cond->list);
                        prune_acl_cond(cond);