]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile/utils: Adds freeing of priv.veth_attr.vlan_tagged_ids
authorThomas Parrott <thomas.parrott@canonical.com>
Wed, 3 Jun 2020 16:44:34 +0000 (17:44 +0100)
committerThomas Parrott <thomas.parrott@canonical.com>
Tue, 9 Jun 2020 08:40:06 +0000 (09:40 +0100)
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/confile_utils.c

index 89fc555bc0eb83a1a7917eb6e4138d4c95fd4b34..06e9f6b193b286112a4a9a99584bab8c470bd423 100644 (file)
@@ -449,6 +449,11 @@ static void lxc_free_netdev(struct lxc_netdev *netdev)
                        free(cur->elem);
                        free(cur);
                }
+
+               lxc_list_for_each_safe(cur, &netdev->priv.veth_attr.vlan_tagged_ids, next) {
+                       lxc_list_del(cur);
+                       free(cur);
+               }
        }
 
        free(netdev);