summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-01-03 16:49:25 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-01-03 16:49:25 +0000
commit4fa3ba3bc754c1ae88a6580928055be26adc6634 (patch)
treeb6ca39804da6b79a288b5506fd5d77d3e2b5dcac /usr.sbin/bgpd
parent01ce710d5a505840bc771b28f36e4d4276721b87 (diff)
Plug some mem leaks.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/bgpd.c3
-rw-r--r--usr.sbin/bgpd/session.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 86d74c65a11..a3a2235fc19 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.128 2006/01/03 13:13:16 claudio Exp $ */
+/* $OpenBSD: bgpd.c,v 1.129 2006/01/03 16:49:23 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -237,6 +237,7 @@ main(int argc, char *argv[])
while ((net = TAILQ_FIRST(&net_l)) != NULL) {
TAILQ_REMOVE(&net_l, net, entry);
+ filterset_free(&net->net.attrset);
free(net);
}
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index cc3df29caf1..b05aa7f98b2 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.239 2005/12/08 15:55:26 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.240 2006/01/03 16:49:24 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -248,6 +248,7 @@ session_main(struct bgpd_config *config, struct peer *cpeers,
/* network list is not used in the SE */
while ((net = TAILQ_FIRST(net_l)) != NULL) {
TAILQ_REMOVE(net_l, net, entry);
+ filterset_free(&net->net.attrset);
free(net);
}