]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: zrouter.mh_info is leaked on shutdown
authorDonald Sharp <sharpd@nvidia.com>
Tue, 11 Oct 2022 19:22:04 +0000 (15:22 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 13 Oct 2022 05:09:25 +0000 (05:09 +0000)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 823d80d15553ee15777242d3e6185d3dcf0cf04d)

zebra/zebra_evpn_mh.c

index 043ea0f248e63f8f1a1266801918e55d8384c789..064c91b72948fdf1e444e01ebdf94ed80700f313 100644 (file)
@@ -4028,4 +4028,6 @@ void zebra_evpn_mh_terminate(void)
        hash_free(zmh_info->nhg_table);
        hash_free(zmh_info->nh_ip_table);
        bf_free(zmh_info->nh_id_bitmap);
+
+       XFREE(MTYPE_ZMH_INFO, zrouter.mh_info);
 }