summaryrefslogtreecommitdiffstats
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-05-30 13:58:33 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-05-30 13:58:36 +0200
commite2835111dd0edf9a1265d6d8cb62c9809a44b853 (patch)
tree3cbf40f4eda723393bcdd6bdcf4a2449a97019ba /src/network/networkctl.c
parenttest-network: make the test take ASAN and UBSAN options (diff)
downloadsystemd-e2835111dd0edf9a1265d6d8cb62c9809a44b853.tar.xz
systemd-e2835111dd0edf9a1265d6d8cb62c9809a44b853.zip
networkctl: fix memleak
Closes #12701.
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r--src/network/networkctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index a7a1a1c62f..9461155e10 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -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;