mirror of https://gitee.com/openkylin/libvirt.git
conf: Fix cpumask leak in virDomainDefFree
def->cpumask is a bitmap and needs to be freed by virBitmapFree.
This commit is contained in:
parent
93e5a1432d
commit
31f1f6bf4a
|
@ -1736,7 +1736,7 @@ void virDomainDefFree(virDomainDefPtr def)
|
|||
virDomainClockDefClear(&def->clock);
|
||||
|
||||
VIR_FREE(def->name);
|
||||
VIR_FREE(def->cpumask);
|
||||
virBitmapFree(def->cpumask);
|
||||
VIR_FREE(def->emulator);
|
||||
VIR_FREE(def->description);
|
||||
VIR_FREE(def->title);
|
||||
|
|
Loading…
Reference in New Issue