summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/parse.y
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-11-11 13:48:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-11-11 13:48:35 +0000
commit36b0a223470c06b4001571b920f1051b6382b65b (patch)
tree96e3d7b8439715a683dc366b3e53740c0971ceb7 /usr.sbin/bgpd/parse.y
parent13ab8521bb6379548214d048c7b3bb660a1010a8 (diff)
Plug two memory leaks in error pathes. Found by parfait. OK henning, jsg
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r--usr.sbin/bgpd/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index af99af689f6..fe1c7361af5 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.238 2009/10/13 09:51:53 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.239 2009/11/11 13:48:34 claudio Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -372,6 +372,7 @@ conf_main : AS as4number {
in6->sin6_port = htons(BGP_PORT);
break;
default:
+ free(la);
yyerror("king bula does not like family %u",
$3.af);
YYERROR;