]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: modify rib_update to be a bit smarter about malloc
authorDonald Sharp <sharpd@nvidia.com>
Tue, 12 Oct 2021 17:23:40 +0000 (13:23 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 20 Oct 2021 12:28:52 +0000 (08:28 -0400)
commite13f12a7d147a993a0aefd0b2b0ba947746071b4
treec12baf53cbe5334921ed8642f06cb1ce8a264bb9
parenta505383d6a42259b96f5882b493f328bc1dd9301
zebra: modify rib_update to be a bit smarter about malloc

rib_update() was mallocing memory then attempting to schedule
and if the schedule failed( it was already going to be run )
FRR would then free the memory.  Fix this memory usage pattern

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_rib.c