mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 12:25:52 +00:00
qemu: Resolve Coverity RESOURCE_LEAK
Commit id '15fa84acb' added the alias fetch, but forgot to free it.
This commit is contained in:
parent
91b9643845
commit
782355a711
@ -11805,7 +11805,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
|
|||||||
int rc;
|
int rc;
|
||||||
virHashTablePtr stats = NULL;
|
virHashTablePtr stats = NULL;
|
||||||
qemuBlockStats *entry;
|
qemuBlockStats *entry;
|
||||||
char *alias;
|
char *alias = NULL;
|
||||||
|
|
||||||
virCheckFlags(0, -1);
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
@ -11891,6 +11891,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
|
|||||||
endjob:
|
endjob:
|
||||||
qemuDomainObjEndJob(driver, vm);
|
qemuDomainObjEndJob(driver, vm);
|
||||||
cleanup:
|
cleanup:
|
||||||
|
VIR_FREE(alias);
|
||||||
virHashFree(stats);
|
virHashFree(stats);
|
||||||
virDomainObjEndAPI(&vm);
|
virDomainObjEndAPI(&vm);
|
||||||
virObjectUnref(cfg);
|
virObjectUnref(cfg);
|
||||||
|
Loading…
Reference in New Issue
Block a user