Unverified Commit 3c9c4609 by Stéphane Graber Committed by GitHub

Merge pull request #3724 from brauner/2021-03-25/fixes

confile_utils: don't free netdev twice
parents 38b4b216 5b1030e2
......@@ -465,7 +465,6 @@ bool lxc_remove_nic_by_idx(struct lxc_conf *conf, unsigned int idx)
continue;
lxc_list_del(cur);
free(cur);
return true;
}
......@@ -480,7 +479,6 @@ void lxc_free_networks(struct lxc_list *networks)
struct lxc_netdev *netdev = cur->elem;
netdev = cur->elem;
lxc_free_netdev(netdev);
free(cur);
}
/* prevent segfaults */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment