提交 69e433bc 编写于 作者: J John Ferlan

qemu_driver: Resolve Coverity RESOURCE_LEAK

Coverity found that the 'buf' wasn't VIR_FREE'd at exit.
上级 bc992995
...@@ -10516,6 +10516,7 @@ qemuDomainGetBlockInfo(virDomainPtr dom, ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册