networkctl: fix memleak

Closes #12701.
This commit is contained in:
Yu Watanabe 2019-05-30 20:58:33 +09:00
parent 94c0312294
commit e2835111dd
1 changed files with 2 additions and 2 deletions

View File

@ -1266,8 +1266,8 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) {
}
for (;;) {
_cleanup_free_ char *cid = NULL, *pid = NULL, *sname = NULL, *pdesc = NULL;
const char *chassis_id = NULL, *port_id = NULL, *system_name = NULL, *port_description = NULL, *capabilities = NULL;
_cleanup_free_ char *cid = NULL, *pid = NULL, *sname = NULL, *pdesc = NULL, *capabilities = NULL;
const char *chassis_id = NULL, *port_id = NULL, *system_name = NULL, *port_description = NULL;
_cleanup_(sd_lldp_neighbor_unrefp) sd_lldp_neighbor *n = NULL;
uint16_t cc;