From: andre Date: Mon, 12 May 2014 14:28:22 +0000 (+0000) Subject: Fix a leak from a recent added mark/marked keywords check. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e9ff676f644d369fb883c7783ce4b309fc73e1f3;p=openbsd Fix a leak from a recent added mark/marked keywords check. ok reyk --- 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;