conf: Fix cpumask leak in virDomainDefFree

def->cpumask is a bitmap and needs to be freed by virBitmapFree.
This commit is contained in:
Ján Tomko 2013-01-25 16:00:47 +01:00
parent 93e5a1432d
commit 31f1f6bf4a

View File

@ -1736,7 +1736,7 @@ void virDomainDefFree(virDomainDefPtr def)
virDomainClockDefClear(&def->clock); virDomainClockDefClear(&def->clock);
VIR_FREE(def->name); VIR_FREE(def->name);
VIR_FREE(def->cpumask); virBitmapFree(def->cpumask);
VIR_FREE(def->emulator); VIR_FREE(def->emulator);
VIR_FREE(def->description); VIR_FREE(def->description);
VIR_FREE(def->title); VIR_FREE(def->title);