On Mon, 2015-07-27 at 18:45 +0100, Wei Liu wrote: > Document how cpupool_info works. Distinguish success (ERROR_FAIL + > ENOENT) vs failure in libxl_list_cpupool and properly clean up the array > in failure path. > > Also switch to libxl__realloc and call libxl_cpupool_{init,dispose} > where appropriate. > > There is change of behaviour. Previously if memory allocation fails the > said function returns NULL. Now memory allocation failure is fatal. This > is in line with how we deal with memory allocation failure in other > places in libxl though. > > Signed-off-by: Wei Liu > Reviewed-by: Dario Faggioli Dario -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)