libxl: Have flexarray using the GC
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 5 Oct 2012 13:34:30 +0000 (14:34 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Fri, 5 Oct 2012 13:34:30 +0000 (14:34 +0100)
commit5fe37ba9c6b6658ed7980f81f8374acd6e2f3bbd
tree74ef7377424cc78bfe25429e3a9c7b047a5cd3b7
parent3c8ec17b26e686a6601e1a678c090f44464ad514
libxl: Have flexarray using the GC

This patch makes the flexarray function libxl__gc aware.

It also updates every function that use a flexarray to pass the gc and removes
every memory allocation check and free.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/flexarray.c
tools/libxl/flexarray.h
tools/libxl/libxl.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_json.c
tools/libxl/libxl_pci.c
tools/libxl/libxl_qmp.c