提交 87386ddc 编写于 作者: J John Ferlan 提交者: Peter Krempa

conf: Fix memory leak in virCPUDefParseXML

Since a08669c3, @tsc is not automatically free'd by any g_auto* method.

Found by Coverity.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
上级 40ef0169
...@@ -335,7 +335,7 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt, ...@@ -335,7 +335,7 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt,
g_autofree char *vendor_id = NULL; g_autofree char *vendor_id = NULL;
g_autofree char *tscScaling = NULL; g_autofree char *tscScaling = NULL;
g_autofree char *migratable = NULL; g_autofree char *migratable = NULL;
virHostCPUTscInfoPtr tsc = NULL; g_autofree virHostCPUTscInfoPtr tsc = NULL;
*cpu = NULL; *cpu = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册