From: Peter Krempa Date: Mon, 17 Dec 2012 10:48:37 +0000 (+0100) Subject: conf: cpu: Fix memory leak when specifying cpu vendor_id manually X-Git-Tag: v1.0.2-rc1~414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb49ffc3;p=thirdparty%2Flibvirt.git conf: cpu: Fix memory leak when specifying cpu vendor_id manually The field was not freed from the cpu definition. --- diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c index 6157ed74af..75289803f5 100644 --- a/src/conf/cpu_conf.c +++ b/src/conf/cpu_conf.c @@ -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); }