diff options
author | Dmitry Vakhrushev <dmitry@netgate.com> | 2020-10-12 13:43:39 +0300 |
---|---|---|
committer | Dmitry Vakhrushev <dmitry@netgate.com> | 2020-10-12 14:04:34 +0300 |
commit | decf51a86ac5df4892d0408b3770f7f8b3afe13d (patch) | |
tree | ad30462047f3afecf797becb32b53568a8719044 /src/plugins/lldp/lldp_output.c | |
parent | 6b410e6d7c0f7c8de0453a6e8b19e408b0bd0158 (diff) |
lldp: fix memory leakage
1. Typo in usage of vnet_hw_interface_add_del_mac_address(),
which returns 0 when it succeeds instead non zero value.
2. Generated error doesn't clean allocated resources for
an interface.
3. Returned value from vnet_hw_interface_add_del_mac_address()
should be erased or reported.
Type: fix
Fixes: 149fd3fbd069a5f7be86e68472578ee7af229cb6
Signed-off-by: Dmitry Vakhrushev <dmitry@netgate.com>
Change-Id: Ia6b28ae70fea127d15eb0102223ff972358766bc
Signed-off-by: Dmitry Vakhrushev <dmitry@netgate.com>
Diffstat (limited to 'src/plugins/lldp/lldp_output.c')
0 files changed, 0 insertions, 0 deletions