diff --git a/src/cfgparse.c b/src/cfgparse.c index e5c9219e1..5627fe280 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2654,7 +2654,10 @@ int check_config_validity() free(pxname); continue; } - /* simple string: free the expression and fall back to static rule */ + /* Only one element in the list, a simple string: free the expression and + * fall back to static rule + */ + LIST_DEL(&node->list); free(node->arg); free(node); } @@ -2715,6 +2718,10 @@ int check_config_validity() free(server_name); continue; } + /* Only one element in the list, a simple string: free the expression and + * fall back to static rule + */ + LIST_DEL(&node->list); free(node->arg); free(node); }