From 20bb74983055decf011de6c42a46c101cc46ccd9 Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Tue, 12 Jan 2010 03:33:29 +0000 Subject: Don't leak @if0 format routing host names, pointed out by claudio. --- sbin/pfctl/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin') diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 3a48d22683b..b8203bfce55 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.581 2010/01/12 03:20:51 mcbride Exp $ */ +/* $OpenBSD: parse.y,v 1.582 2010/01/12 03:33:28 mcbride Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -3725,6 +3725,7 @@ route_host : STRING { yyerror("invalid host for route spec"); YYERROR; } + free($1); } else { $$ = calloc(1, sizeof(struct node_host)); if ($$ == NULL) -- cgit v1.2.3