summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-01-20 14:56:13 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-01-20 14:56:13 +0000
commit23b28435a2b818262c640d13a803761927201467 (patch)
treec265b6069c62949498d1fa0da389989de3a33164 /usr.sbin/bgpd/rde.c
parent8465d6ad22f3e2fd7588c95945ab2b84a6ab0f6c (diff)
Don't leak a aspath in network_add(). path_update() copies the aspath so
the passed aspath needs to be freed in network_add(). OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r--usr.sbin/bgpd/rde.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index f876984be1f..433ad958357 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.193 2006/01/14 22:39:49 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.194 2006/01/20 14:56:12 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2177,6 +2177,8 @@ network_add(struct network_config *nc, int flagstatic)
DIR_IN);
path_update(&peerdynamic, asp, &nc->prefix, nc->prefixlen);
}
+
+ path_put(asp);
filterset_free(&nc->attrset);
}