mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-03 09:53:13 -05:00
qemu_driver: Resolve Coverity RESOURCE_LEAK
Coverity found that the 'buf' wasn't VIR_FREE'd at exit.
This commit is contained in:
@@ -10516,6 +10516,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
|
||||
}
|
||||
|
||||
cleanup:
|
||||
VIR_FREE(buf);
|
||||
VIR_FREE(alias);
|
||||
virStorageSourceFree(meta);
|
||||
VIR_FORCE_CLOSE(fd);
|
||||
|
||||
Reference in New Issue
Block a user