[libvirt PATCH v6 06/15] xen_xl: adapt xenParseXLCPUID due to changes in xenConfigGetString

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

 



xenConfigGetString returns a newly-allocated pointer and it has to be
freed by the caller.

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 src/xenconfig/xen_xl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_xl.c
index cb1cab8482..7d86849feb 100644
--- a/src/xenconfig/xen_xl.c
+++ b/src/xenconfig/xen_xl.c
@@ -346,6 +346,7 @@ xenParseXLCPUID(virConfPtr conf, virDomainDefPtr def)
     ret = 0;
 
  cleanup:
+    VIR_FREE(cpuid_str);
     virStringListFree(name_and_value);
     virStringListFree(cpuid_pairs);
     return ret;
-- 
2.17.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux