]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix leak of address string in qemuDomainPCIAddressGetNextSlot
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 24 Sep 2013 15:13:44 +0000 (16:13 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Sep 2013 14:49:12 +0000 (15:49 +0100)
commite7b7a2019d291d3eeb2cbfb8c43e68ee85b052db
tree577a77181a3c5a41a0fc3f294a548b38935eaf08
parent66f2db73116240cb94c93e9ee4b9e5229ef98c22
Fix leak of address string in qemuDomainPCIAddressGetNextSlot

qemuDomainPCIAddressGetNextSlot has a loop for finding
compatible PCI buses. In the loop body it creates a
PCI address string, but never frees this. This causes
a leak if the loop executes more than one iteration,
or if a call in the loop body fails.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_command.c