diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-09-03 16:32:00 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-10-04 20:09:40 +0200 |
commit | c4f8e745f8767356895f053ad60ed98c6473a4ea (patch) | |
tree | 9a4d5477d3e82b207ceb5aea228e55f374328c0c /proto/rip/rip.c | |
parent | 0c69be079abfd43b683c2d9daed3e9d42fd09ec2 (diff) |
Fixes a memory leak in RIP.
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r-- | proto/rip/rip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 0e5320c8..4b60d751 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -269,6 +269,8 @@ rip_rte_update_if_better(rtable *tab, net *net, struct proto *p, rte *new) (ipa_equal(old->attrs->from, new->attrs->from) && (old->u.rip.metric != new->u.rip.metric)) ) rte_update(tab, net, p, p, new); + else + rte_free(new); } /* |