From 5055e567de8166137ec2466cdf61a714f81c7be2 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 17 Oct 2019 13:00:31 +0200 Subject: src: define flowtable device compound as a list This fixes a memleak when releasing the compound expression via expr_free(). Fixes: 92911b362e90 ("src: add support to add flowtables") Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 1e2b3001..8ad581f6 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1826,7 +1826,7 @@ flowtable_expr : '{' flowtable_list_expr '}' flowtable_list_expr : flowtable_expr_member { - $$ = compound_expr_alloc(&@$, EXPR_INVALID); + $$ = compound_expr_alloc(&@$, EXPR_LIST); compound_expr_add($$, $1); } | flowtable_list_expr COMMA flowtable_expr_member -- cgit v1.2.3