On Tue, Aug 31, 2010 at 02:36:38PM +0200, Stéphane Bunel wrote:
> Hi there,
>
>   I'm working on a use case with two routers (foundry) emiting RIPv2  
> messages in multicast over an ethernet link and one Ubuntu/Linux/64  
> server with BIRD configured as a quiet RIP listener.
>
>   Configuration is simple and working well. But as you can see below,  
> BIRD seems to eat memory after each message it receive (+4K after  
> receiving 2*3 RIP paquets). Memory used by BIRD seems to grow endless.  
> I' cant say if it's a bug but it sound like.
>
>   On the mailing list, i've found a thread of three messages speaking  
> about things between libc and kernel. But I'm not sure this is related.
>
>   Do you have notice this behavior and do you have find a solution ?

Could you try an attached patch and report a result?

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santi...@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 0e5320c..4b60d75 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);
 }
 
 /*

Reply via email to