qemu_driver: Resolve Coverity RESOURCE_LEAK

Coverity found that the 'buf' wasn't VIR_FREE'd at exit.
This commit is contained in:
John Ferlan 2014-08-27 15:37:13 -04:00
parent bc9929958d
commit 69e433bc22

View File

@ -10516,6 +10516,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
}
cleanup:
VIR_FREE(buf);
VIR_FREE(alias);
virStorageSourceFree(meta);
VIR_FORCE_CLOSE(fd);