xenConfigGetString returns a newly-allocated pointer and it has to be
freed by the caller.
Signed-off-by: Fabiano FidĂȘncio <fidencio(a)redhat.com>
---
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