[libvirt] [PATCH 2/4] conf: cpu: Fix memory leak when specifying cpu vendor_id manually

Peter Krempa pkrempa at redhat.com
Mon Dec 17 11:22:03 UTC 2012


The field was not freed from the cpu definition.
---
 src/conf/cpu_conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c
index 6157ed7..7528980 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);
 }
-- 
1.8.0.2




More information about the libvir-list mailing list