提交 782355a7 编写于 作者: J John Ferlan

qemu: Resolve Coverity RESOURCE_LEAK

Commit id '15fa84ac' added the alias fetch, but forgot to free it.
上级 91b96438
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册