mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +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;
|
||||
virHashTablePtr stats = NULL;
|
||||
qemuBlockStats *entry;
|
||||
char *alias;
|
||||
char *alias = NULL;
|
||||
|
||||
virCheckFlags(0, -1);
|
||||
|
||||
@ -11891,6 +11891,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom,
|
||||
endjob:
|
||||
qemuDomainObjEndJob(driver, vm);
|
||||
cleanup:
|
||||
VIR_FREE(alias);
|
||||
virHashFree(stats);
|
||||
virDomainObjEndAPI(&vm);
|
||||
virObjectUnref(cfg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user