]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: On shutdown free up memory leak found by topotest 18614/head
authorDonald Sharp <sharpd@nvidia.com>
Tue, 8 Apr 2025 15:47:50 +0000 (11:47 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 8 Apr 2025 15:47:50 +0000 (11:47 -0400)
commitb18c309015f3b91bc65af2f64ed3e6f845b855eb
tree123debc3e64d1af84839830be6a8ee67a8e0b164
parent53a8868331e662a0785a0cbcdd452b4f1017d534
bgpd: On shutdown free up memory leak found by topotest

This commit fixes two types of problems:

a) Avoidance of cleaning up memory when a instance is
hidden, thus causing it never to be freed on shutdown

b) In some instances bgp_create is called 2 times
for some code.  We are double allocating memory
and dropping it on the second allocation.

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