diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-12-08 18:06:03 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-12-08 18:06:58 +0100 |
commit | 8eca0308c44127f3b4335c50b96ce8c4d2e041bd (patch) | |
tree | 4e3b3f899fc54e36d042b5794dc2fbcdb840807b /src/parser_bison.y | |
parent | 08a04414f24e21a07e58c2ccc750e1a57d4da6b6 (diff) |
parser_bison: double close_scope() call for implicit chains
Call close_scope() from chain_block_alloc only.
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1485
Fixes: c330152b7f77 ("src: support for implicit chain bindings")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r-- | src/parser_bison.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y index fb329919..e8aa5bb8 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -605,7 +605,7 @@ int nft_lex(void *, void *, void *); %type <table> table_block_alloc table_block %destructor { close_scope(state); table_free($$); } table_block_alloc %type <chain> chain_block_alloc chain_block subchain_block -%destructor { close_scope(state); chain_free($$); } chain_block_alloc subchain_block +%destructor { close_scope(state); chain_free($$); } chain_block_alloc %type <rule> rule rule_alloc %destructor { rule_free($$); } rule |