mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00: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:
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user