summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2010-01-12 03:33:29 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2010-01-12 03:33:29 +0000
commit20bb74983055decf011de6c42a46c101cc46ccd9 (patch)
treee31796243fda167a661bea5bf9ae95a67bc6aa30 /sbin
parentae2d82548e03e3028f9752c263ff4a49c932b794 (diff)
Don't leak @if0 format routing host names, pointed out by claudio.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y3
1 files changed, 2 insertions, 1 deletions
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)