diff options
author | Jorge Boncompte [DTI2] <jorge@dti2.net> | 2012-05-07 15:17:33 +0000 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2013-01-14 14:43:51 +0100 |
commit | 24e50f2013e64a73b1f7ecdbd5688360002d09f7 (patch) | |
tree | 3c53b418e2f91f703ee79fd4b224e157b25218b3 /ospfd/ospf_vty.h | |
parent | ebbb5fca5ca899a9a125aa2770d3fdf857186bac (diff) |
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>
Diffstat (limited to 'ospfd/ospf_vty.h')
0 files changed, 0 insertions, 0 deletions