From e2835111dd0edf9a1265d6d8cb62c9809a44b853 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 30 May 2019 20:58:33 +0900 Subject: [PATCH] networkctl: fix memleak Closes #12701. --- src/network/networkctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/networkctl.c b/src/network/networkctl.c index a7a1a1c62f8..9461155e109 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; -- 2.47.3