Fix a leak from a recent added mark/marked keywords check.
authorandre <andre@openbsd.org>
Mon, 12 May 2014 14:28:22 +0000 (14:28 +0000)
committerandre <andre@openbsd.org>
Mon, 12 May 2014 14:28:22 +0000 (14:28 +0000)
ok reyk

usr.sbin/relayd/parse.y

index 27b3586..6fc09e5 100644 (file)
@@ -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 <reyk@openbsd.org>
@@ -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;