]> git.puffer.fish Git - mirror/frr.git/commit
isisd: Fix memory leak in copy_tlv_router_cap 7395/head
authorDonald Sharp <sharpd@nvidia.com>
Tue, 27 Oct 2020 16:40:46 +0000 (12:40 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 27 Oct 2020 16:40:46 +0000 (12:40 -0400)
commita064a7b8cac6c72c3add1324b527d24b85f78320
tree2ab2ccc135cd59c197347f51f4590beca6f34654
parentdd511712271ae352b25288ecab318f885ade00d6
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