Merge pull request #7377 from donaldsharp/bgp_static_leak

bgpd: Bgp static routes memory leak
This commit is contained in:
Renato Westphal 2020-10-24 15:29:34 -03:00 committed by GitHub
commit 7281a37c8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5747,9 +5747,9 @@ void bgp_static_delete(struct bgp *bgp)
bgp_dest_get_prefix( bgp_dest_get_prefix(
dest)); dest));
bgp_static_free(bgp_static); bgp_static_free(bgp_static);
bgp_dest_set_bgp_static_info(dest, bgp_dest_set_bgp_static_info(rm,
NULL); NULL);
bgp_dest_unlock_node(dest); bgp_dest_unlock_node(rm);
} }
} else { } else {
bgp_static = bgp_dest_get_bgp_static_info(dest); bgp_static = bgp_dest_get_bgp_static_info(dest);