diff options
Diffstat (limited to 'usr.sbin/bgpd/rde_attr.c')
-rw-r--r-- | usr.sbin/bgpd/rde_attr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c index 715f3c0ecff..3b1122cd32c 100644 --- a/usr.sbin/bgpd/rde_attr.c +++ b/usr.sbin/bgpd/rde_attr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_attr.c,v 1.63 2006/02/09 21:05:09 claudio Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.64 2006/03/15 11:26:45 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -774,6 +774,7 @@ community_set(struct rde_aspath *asp, int as, int type) attr_optadd(asp, f, t, p, ncommunities << 2); + free(p); return (1); } @@ -836,5 +837,6 @@ community_delete(struct rde_aspath *asp, int as, int type) attr_free(asp, attr); attr_optadd(asp, f, t, n, len); + free(n); } |