Skip to contentSkip to conversation

parser_bison: memleak in osf flags

PATCH New Pablo Neira Ayuso 1 participant 1 message Jun 17, 2021 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 parser_bison: memleak in osf flags

Release osf string flag after processing.

---
 src/parser_bison.y | 2 ++
 1 file changed, 2 insertions(+)
src/parser_bison.y +2 -0
index bd2232a3de27..5e702a054f44 100644
@@ -4032,8 +4032,10 @@ osf_ttl			:	/* empty */
 				else {
 					erec_queue(error(&@2, "invalid ttl option"),
 						   state->msgs);
+					xfree($2);
 					YYERROR;
 				}
+				xfree($2);
 			}
 			;
 
Signature · 1 line
2.20.1