]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: eliminate memory leak in qemuDomainUpdateDeviceConfig
authorLaine Stump <laine@laine.org>
Thu, 8 Mar 2012 06:46:36 +0000 (01:46 -0500)
committerLaine Stump <laine@laine.org>
Thu, 8 Mar 2012 21:58:53 +0000 (16:58 -0500)
commit7a23ba090dd8a374974d3da0180ea3a6ffdc05fb
tree5f98959a7c22930602dc7fbb3a92650d9a3b4717
parentedb6fc3a7f0de4a4881862287b412b66b8153768
qemu: eliminate memory leak in qemuDomainUpdateDeviceConfig

This function was freeing a virDomainNetDef with
VIR_FREE(). virDomainNetDef is a complex structure with many pointers
to other dynamically allocated data; to properly free it
virDomainNetDefFree() must be called instead, otherwise several
strings (and potentially other things) will be leaked.
src/qemu/qemu_driver.c