]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: eliminate extraneous free of netDef->ifname_guest
authorLaine Stump <laine@laine.org>
Wed, 15 Jun 2016 19:17:53 +0000 (15:17 -0400)
committerLaine Stump <laine@laine.org>
Sun, 26 Jun 2016 23:33:08 +0000 (19:33 -0400)
commitf03a4a2a96c2f3b0c8c5dc82280f361201ac8575
treea24f884556b463457d30c7abba03a2087fea29b0
parent9359167ec0caf27c44c26e14ba27be20342ecddc
lxc: eliminate extraneous free of netDef->ifname_guest

lxcContainerRenameAndEnableInterfaces() isn't making a copy of the
interface's ifname_guest (into newname), it's just copying the pointer
to it. This means that when it later calls VIR_FREE(newname), it's
actually freeing up (and fortunately NULLing out, so at least we don't
try to access free'd memory) netDef->ifname_guest.
src/lxc/lxc_container.c