mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu_driver: Resolve Coverity RESOURCE_LEAK
Coverity found that the 'buf' wasn't VIR_FREE'd at exit.
This commit is contained in:
parent
bc9929958d
commit
69e433bc22
@ -10516,6 +10516,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
VIR_FREE(buf);
|
||||||
VIR_FREE(alias);
|
VIR_FREE(alias);
|
||||||
virStorageSourceFree(meta);
|
virStorageSourceFree(meta);
|
||||||
VIR_FORCE_CLOSE(fd);
|
VIR_FORCE_CLOSE(fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user