mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: cpu: Fix memory leak when specifying cpu vendor_id manually
The field was not freed from the cpu definition.
This commit is contained in:
@@ -87,6 +87,7 @@ virCPUDefFree(virCPUDefPtr def)
|
||||
VIR_FREE(def->cells[i].cpustr);
|
||||
}
|
||||
VIR_FREE(def->cells);
|
||||
VIR_FREE(def->vendor_id);
|
||||
|
||||
VIR_FREE(def);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user