summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-12-08 13:37:27 +0100
committerFlorian Westphal <fw@strlen.de>2023-12-11 17:12:23 +0100
commit21608263cc1ae489326e743957bfe34b05414a44 (patch)
treea102d74a080712bc58df2b36ec3b6ab37f5f02dd /src/parser_bison.y
parent78dffb470fcf7b1c0b1b3d6f43fcc056c337a808 (diff)
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 <fw@strlen.de>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y1
1 files changed, 1 insertions, 0 deletions
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;
}