]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Free aggr_suppresors list on extra deletion
authorDonald Sharp <sharpd@nvidia.com>
Sun, 15 Nov 2020 00:16:57 +0000 (19:16 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sun, 15 Nov 2020 00:16:57 +0000 (19:16 -0500)
When we delete the bgp_path_info_extra data structure free
the aggr_suppressors data structure that was left dangling.

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

index 1be7e4844de20b2d52bdba91107944e459aebd3e..97e5a7e2dd3357f8038b900f1f028027b309fcc8 100644 (file)
@@ -241,6 +241,9 @@ void bgp_path_info_extra_free(struct bgp_path_info_extra **extra)
        if (e->bgp_orig)
                bgp_unlock(e->bgp_orig);
 
+       if (e->aggr_suppressors)
+               list_delete(&e->aggr_suppressors);
+
        if ((*extra)->bgp_fs_iprule)
                list_delete(&((*extra)->bgp_fs_iprule));
        if ((*extra)->bgp_fs_pbr)