confile_utils: free list during lxc_remove_nic_by_idx()

parent 1998f661
......@@ -466,6 +466,7 @@ bool lxc_remove_nic_by_idx(struct lxc_conf *conf, unsigned int idx)
lxc_list_del(cur);
lxc_free_netdev(netdev);
free(cur);
return true;
}
......
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