From 21608263cc1ae489326e743957bfe34b05414a44 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 8 Dec 2023 13:37:27 +0100 Subject: parser_bison: fix memleak in meta set error handling We must release the expression here, found via afl++ and -fsanitize-address build. Signed-off-by: Florian Westphal --- src/parser_bison.y | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 64946a43..70acfc57 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -5331,6 +5331,7 @@ meta_stmt : META meta_key SET stmt_expr close_scope_meta free_const($2); if (erec != NULL) { erec_queue(erec, state->msgs); + expr_free($4); YYERROR; } -- cgit v1.2.3