]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkctl: fix memleak 12699/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 30 May 2019 11:58:33 +0000 (20:58 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 30 May 2019 11:58:36 +0000 (20:58 +0900)
Closes #12701.

src/network/networkctl.c

index a7a1a1c62f84c30b7ae4dddbb8640761c5cf2fcf..9461155e10907baf33dea4020ddc6b9becadd919 100644 (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;