mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
committed by
Peter Krempa
parent
40ef01697f
commit
87386ddcb6
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user