[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]