isisd: Free memory when confused

When you call into lsp_update with confusion, the lsp is purged
and we do not do anything with the created tlv's from parsing
the incoming data.  To prevent the tlv's from being leaked
note confusion and delete the unneeded data.

Fixes: #5496
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2019-12-12 19:30:21 -05:00
parent 0783b36d0e
commit ebeae7d58d

View File

@ -1054,6 +1054,8 @@ dontcheckadj:
circuit->rcv_stream,
circuit->area, level,
lsp_confusion);
if (lsp_confusion)
isis_free_tlvs(tlvs);
tlvs = NULL;
/* ii */
lsp_flood_or_update(lsp, NULL,