[quagga-dev 8964] Re: bgpd: extra attribute memory leak

Mike Tancsa mike at sentex.net
Sat Dec 3 12:23:18 GMT 2011


On 12/2/2011 8:47 PM, Stephen Hemminger wrote:
> For the simple case of:
>    * setup BGP peer connection
>    * close connection
>    * lather, rinse, repeat
> 
> I see that BGP extra attributes are building up, in fact on close
> the extra attributes grow (not shrink). The problem looks like this
> code:

Without (its part of the FreeBSD port thanks to Oleg)

--- ./bgpd/bgp_attr.c.orig      2011-10-18 10:12:39.000000000 -0400
+++ ./bgpd/bgp_attr.c   2011-10-18 10:13:01.000000000 -0400
@@ -675,6 +675,7 @@
     }

   bgp_attr_unintern_sub (&tmp);
+  bgp_attr_extra_free (&tmp);
 }

 void


bgpd is not useable for me.

I ran into this last October

http://lists.quagga.net/pipermail/quagga-users/2011-October/012529.html

	---Mike


-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/



More information about the Quagga-dev mailing list