]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_router.c
zebra: Fix memory leaks and use after frees in nhg's on shutdown
authorDonald Sharp <sharpd@nvidia.com>
Thu, 4 Aug 2022 11:05:46 +0000 (07:05 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 5 Aug 2022 11:51:27 +0000 (07:51 -0400)
commitd5795103bc1dc4aada29b1ae7a052a97e07eb8bc
treebca9a45b55d8dac372613c3627e696b5c9beb098
parent34a67a7d1eb1dff6cef5caf8aa85763cc98c31fb
zebra: Fix memory leaks and use after frees in nhg's on shutdown

Fixup both memory leaks as well as use after free's in nhg's
on shutdown.

This approach is effectively just iterating through all the
hash items and directly just freeing the memory instead
of handling ref counts or cross references.

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