30 lines
896 B
Diff
30 lines
896 B
Diff
From a2fb19736bf6879146dba5cd40a3265cb1c9671b Mon Sep 17 00:00:00 2001
|
|
From: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
Date: Tue, 28 Jul 2020 19:36:57 +0200
|
|
Subject: parser_bison: memleak symbol redefinition
|
|
|
|
Missing expr_free() from the error path.
|
|
|
|
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
Conflict: NA
|
|
Reference: http://git.netfilter.org/nftables/commit/?id=a2fb19736bf6879146dba5cd40a3265cb1c9671b
|
|
|
|
---
|
|
src/parser_bison.y | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/parser_bison.y b/src/parser_bison.y
|
|
index f0cca641..167c3158 100644
|
|
--- a/src/parser_bison.y
|
|
+++ b/src/parser_bison.y
|
|
@@ -862,6 +862,7 @@ common_block : INCLUDE QUOTED_STRING stmt_separator
|
|
if (symbol_lookup(scope, $2) != NULL) {
|
|
erec_queue(error(&@2, "redefinition of symbol '%s'", $2),
|
|
state->msgs);
|
|
+ expr_free($4);
|
|
xfree($2);
|
|
YYERROR;
|
|
}
|
|
--
|
|
cgit v1.2.3
|