From: Ian Campbell Date: Thu, 19 Aug 2010 14:21:01 +0000 (+0100) Subject: libxl: libxl_device_console.build_state is const X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11604 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5ccd288712f8a5d1a65f8231e517ece0bd225468;p=xen.git libxl: libxl_device_console.build_state is const This field always refers to a libxl_domain_build_state structure which is managed already by the caller, therefore it is incorrect to free it as part of libxl_device_console_destroy. (arguably this field should be a copy of, not a reference too, the original) [PATCH 06 of 16 of libxl: autogenerate type definitions and destructor functions] Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/libxl.idl b/tools/libxl/libxl.idl index ea425de6b3..e3cca5a8de 100644 --- a/tools/libxl/libxl.idl +++ b/tools/libxl/libxl.idl @@ -195,7 +195,7 @@ libxl_device_console = Struct("device_console", [ ("domid", domid), ("devid", integer), ("consback", libxl_console_consback), - ("build_state", Reference(libxl_domain_build_state)), + ("build_state", Reference(libxl_domain_build_state), True), ("output", string), ])