]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: avoid heap fragmentation in bgp_clear_route_table
authorJorge Boncompte [DTI2] <jorge@dti2.net>
Mon, 7 May 2012 15:17:33 +0000 (15:17 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 14 Jan 2013 13:43:51 +0000 (14:43 +0100)
commit24e50f2013e64a73b1f7ecdbd5688360002d09f7
tree3c53b418e2f91f703ee79fd4b224e157b25218b3
parentebbb5fca5ca899a9a125aa2770d3fdf857186bac
bgpd: avoid heap fragmentation in bgp_clear_route_table

In bgp_clear_route_table, moved cleanup code before the allocation
of the work queue items. This returns the memory to the system
allocator before allocating new and might therefore help avoiding
heap fragmentation.

* bgp_route.c: (bgp_clear_route_table) moved code blocks.

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Reviewed-by: Leonid Rosenboim <Leonid.Rosenboim@windriver.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_route.c