]> git.proxmox.com Git - mirror_frr.git/commit - zebra/table_manager.c
zebra: fix memleak on shutdown
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 15 Nov 2021 21:00:00 +0000 (00:00 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 16 Nov 2021 09:42:32 +0000 (12:42 +0300)
commit9742796ff1b34699297b64c72b31a27fbafd23b0
tree2e91d827eab21a8f3cff4da6c5233f316e749b95
parentde48804c01e077a54b4a46221c433c33abc4e334
zebra: fix memleak on shutdown

During shutdown, when table_manager_disable is called for the default
VRF, its vrf_id is already set to VRF_UNKNOWN, so the expression is true
and the table manager memory is not freed. Change the expression to
compare the VRF name instead of the id. The check in table_manager_enable
is changed for consistency.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
zebra/table_manager.c