]> git.ipfire.org Git - thirdparty/lldpd.git/commit
protocols: fix more memory leak when decoding multiple TLVs fix/cdp-memory-leak 437/head
authorVincent Bernat <vincent@bernat.ch>
Tue, 16 Mar 2021 16:36:35 +0000 (17:36 +0100)
committerVincent Bernat <vincent@bernat.ch>
Tue, 16 Mar 2021 16:47:07 +0000 (17:47 +0100)
commit07cc89f97e608d1ae1d85a31b352fd0957e2aba6
tree9a664daf5f222be57e99b56617d5c3c7db91f37c
parent8c69002b45bbb23764dc9a6a2c2ce8f9275717d4
protocols: fix more memory leak when decoding multiple TLVs

In a8d3c90feca5, some memory leaks were fixed when a TLV is present
multiple times. There were other occurrences in LLDP, CDP and EDP
handling. We ensure we free before overwriting with the new TLVs.

Fix #436
NEWS
src/daemon/protocols/cdp.c
src/daemon/protocols/edp.c
src/daemon/protocols/lldp.c