]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: On shutdown free up memory leak found by topotest
authorDonald Sharp <sharpd@nvidia.com>
Tue, 8 Apr 2025 15:47:50 +0000 (11:47 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 8 Apr 2025 19:32:09 +0000 (19:32 +0000)
commitf1a18399fa91f431c4fdb952e9b55814fa04d771
treecc47909972014af26ca70690361ead42398777e5
parent18716fecb975bd6fbfa7544a26971ea21fbb1b87
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>
(cherry picked from commit b18c309015f3b91bc65af2f64ed3e6f845b855eb)
bgpd/bgpd.c