]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes a memory leak in RIP.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 3 Sep 2010 14:32:00 +0000 (16:32 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 3 Sep 2010 14:32:00 +0000 (16:32 +0200)
proto/rip/rip.c

index 0e5320c8f6cd6df3b2d62272ecf294e6c92e7db5..4b60d75183eb674f5ab547c0bfcb0057a7cf861a 100644 (file)
@@ -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);
 }
 
 /*