summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-08-03 13:43:30 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-08-03 13:43:30 +0000
commite9b6af7b0e27fc1970edfe8c8ce344c70b327dcf (patch)
treeeaff88d19bdfbb213f94026a4dc2fafbff4c222b
parentf5b127eba0484de17f85b0345c450fc6a6cf57bd (diff)
Fix mem-leak on exit. OK henning@
-rw-r--r--usr.sbin/bgpd/bgpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 2676885171a..e536f6058fb 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.102 2004/07/28 16:00:02 claudio Exp $ */
+/* $OpenBSD: bgpd.c,v 1.103 2004/08/03 13:43:29 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -333,6 +333,7 @@ main(int argc, char *argv[])
control_cleanup();
kr_shutdown();
pftable_clear_all();
+ free(conf.listen_addrs);
do {
if ((pid = wait(NULL)) == -1 &&