From 36b0a223470c06b4001571b920f1051b6382b65b Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 11 Nov 2009 13:48:35 +0000 Subject: Plug two memory leaks in error pathes. Found by parfait. OK henning, jsg --- usr.sbin/bgpd/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd/parse.y') 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 @@ -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; -- cgit v1.2.3