Re: [PATCH for-4.13] tools/libxl: Fix memory leak in libxl_cpuid_set()

2020-06-16 Thread Jan Beulich
On 12.06.2020 19:32, Andrew Cooper wrote: > xc_cpuid_set() returns allocated memory via cpuid_res, which libxl needs to > free() seeing as it discards the results. > > This is logically a backport of c/s b91825f628 "tools/libxc: Drop > config_transformed parameter from xc_cpuid_set()" but rewritte

Re: [PATCH for-4.13] tools/libxl: Fix memory leak in libxl_cpuid_set()

2020-06-15 Thread Ian Jackson
Andrew Cooper writes ("[PATCH for-4.13] tools/libxl: Fix memory leak in libxl_cpuid_set()"): > xc_cpuid_set() returns allocated memory via cpuid_res, which libxl needs to > free() seeing as it discards the results. > > This is logically a backport of c/s b91825f

[PATCH for-4.13] tools/libxl: Fix memory leak in libxl_cpuid_set()

2020-06-12 Thread Andrew Cooper
xc_cpuid_set() returns allocated memory via cpuid_res, which libxl needs to free() seeing as it discards the results. This is logically a backport of c/s b91825f628 "tools/libxc: Drop config_transformed parameter from xc_cpuid_set()" but rewritten as one caller of xc_cpuid_set() does use returned