From e9ff676f644d369fb883c7783ce4b309fc73e1f3 Mon Sep 17 00:00:00 2001 From: andre Date: Mon, 12 May 2014 14:28:22 +0000 Subject: [PATCH] Fix a leak from a recent added mark/marked keywords check. ok reyk --- usr.sbin/relayd/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y index 27b3586c4f9..6fc09e569a6 100644 --- a/usr.sbin/relayd/parse.y +++ b/usr.sbin/relayd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.181 2014/05/08 16:11:06 reyk Exp $ */ +/* $OpenBSD: parse.y,v 1.182 2014/05/12 14:28:22 andre Exp $ */ /* * Copyright (c) 2007-2011 Reyk Floeter @@ -1252,6 +1252,7 @@ protonode : nodetype APPEND STRING TO STRING nodeopts { | nodetype MARK STRING WITH mark nodeopts { if (node.mark) { yyerror("either mark or marked"); + free($3); YYERROR; } node.action = NODE_ACTION_MARK; -- 2.20.1