]> git.puffer.fish Git - matthieu/frr.git/commit
isisd: Fix memory leak in copy_tlv_router_cap
authorDonald Sharp <sharpd@nvidia.com>
Tue, 27 Oct 2020 16:40:46 +0000 (12:40 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Oct 2020 18:35:48 +0000 (21:35 +0300)
commit5196ffb552f341c84cf61fa761f2f2bf8fc3dcfb
tree8e7feb8d06aa2a0de7a64ea6b10cb90fccd08e92
parent740f318f4f2c2fc6333976ec5721e17cc323be85
isisd: Fix memory leak in copy_tlv_router_cap

There exists a code path where we would allocate memory
then test a variable and then immediately return NULL.
Prevent memory from leaking in this situation.

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