[libvirt] [PATCH] conf: Remove redundant free in virCPUDefFree

Jiri Denemark jdenemar at redhat.com
Wed Jun 22 08:45:22 UTC 2016


vendor_id is (and always was) already freed in virCPUDefFreeModel.

This effectively reverts commit fb49ffc3.

Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
---
 src/conf/cpu_conf.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c
index 1ba1d82..7230b89 100644
--- a/src/conf/cpu_conf.c
+++ b/src/conf/cpu_conf.c
@@ -77,9 +77,6 @@ virCPUDefFree(virCPUDefPtr def)
         return;
 
     virCPUDefFreeModel(def);
-
-    VIR_FREE(def->vendor_id);
-
     VIR_FREE(def);
 }
 
-- 
2.9.0




More information about the libvir-list mailing list