]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: fix SPF table memory leak
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 15 Dec 2022 12:54:33 +0000 (09:54 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 20 Dec 2022 11:51:13 +0000 (08:51 -0300)
commit9bf19426e04fcf79c798d8b5d7edf5ab615816e9
treeb8deb74e5cce97ce9a335ab6f51bbf4c91b2a70b
parentbcf4d02b8489b2e3f795802136cc59ec31038622
ospfd: fix SPF table memory leak

After `free()`ing a table also set it to NULL so when the instance
release function is called we know whether the pointer is valid or not.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
ospfd/ospf_spf.c
ospfd/ospfd.c