diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-05-30 13:58:33 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-05-30 13:58:36 +0200 |
commit | e2835111dd0edf9a1265d6d8cb62c9809a44b853 (patch) | |
tree | 3cbf40f4eda723393bcdd6bdcf4a2449a97019ba /src/network/networkctl.c | |
parent | test-network: make the test take ASAN and UBSAN options (diff) | |
download | systemd-e2835111dd0edf9a1265d6d8cb62c9809a44b853.tar.xz systemd-e2835111dd0edf9a1265d6d8cb62c9809a44b853.zip |
networkctl: fix memleak
Closes #12701.
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 4 |
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; |