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:
Peter Krempa 2012-12-17 11:48:37 +01:00
parent 1190a82469
commit fb49ffc3bb

View File

@ -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);
}