From: Yu Watanabe Date: Thu, 30 May 2019 11:58:33 +0000 (+0900) Subject: networkctl: fix memleak X-Git-Tag: v243-rc1~337^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12699%2Fhead;p=thirdparty%2Fsystemd.git networkctl: fix memleak Closes #12701. --- 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;