intel / openlldp

Other
54 stars 42 forks source link

lldpad: free the memory allocted by strdup #103

Closed liuhangbin closed 1 month ago

liuhangbin commented 2 months ago

There are some strdup calls that are not freed after use. Let's free them to avoid resource leaks.

This issue was found through static code analysis.

Fixes: b4f9ebc96e0c ("lldpad: implement APP TLV set/get commands") Fixes: 0313734d05cc ("lldpad: correct IEEE DCBX capabilities check")

apconole commented 1 month ago

Merged - thanks!