conf: Fix memory leak in virCPUDefParseXML

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

Found by Coverity.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
John Ferlan 2020-06-16 08:07:09 -04:00 committed by Peter Krempa
parent 40ef01697f
commit 87386ddcb6

View File

@ -335,7 +335,7 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt,
g_autofree char *vendor_id = NULL;
g_autofree char *tscScaling = NULL;
g_autofree char *migratable = NULL;
virHostCPUTscInfoPtr tsc = NULL;
g_autofree virHostCPUTscInfoPtr tsc = NULL;
*cpu = NULL;