bgpd, fix some rtlabel leaks

2022-06-07 Thread Claudio Jeker
The kroute code can leak rtlabel references in various conditions. In the end we want to drop the reference before free(). So move the unref into kroute_remove() so it is done mostly in one place. On top fix a few other places where kroutes are freed. This diff is on top of the previous diff (re

Re: bgpd, fix some rtlabel leaks

2022-06-07 Thread Theo Buehler
On Tue, Jun 07, 2022 at 05:49:53PM +0200, Claudio Jeker wrote: > The kroute code can leak rtlabel references in various conditions. > In the end we want to drop the reference before free(). > So move the unref into kroute_remove() so it is done mostly in one place. > On top fix a few other places w

Re: bgpd, fix some rtlabel leaks

2022-06-07 Thread Claudio Jeker
On Tue, Jun 07, 2022 at 06:21:37PM +0200, Theo Buehler wrote: > On Tue, Jun 07, 2022 at 05:49:53PM +0200, Claudio Jeker wrote: > > The kroute code can leak rtlabel references in various conditions. > > In the end we want to drop the reference before free(). > > So move the unref into kroute_remove(