[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 06 of 16] libxl: libxl_device_console.build_state is const
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1282143677 -3600 # Node ID 07a0a384e66898d530a6dc78ad2004ce5653dda7 # Parent 1ee0c9db536b4af2a8543a80d2a939a3b5ec76e7 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) Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> diff -r 1ee0c9db536b -r 07a0a384e668 tools/libxl/libxl.idl --- a/tools/libxl/libxl.idl Wed Aug 18 16:01:17 2010 +0100 +++ b/tools/libxl/libxl.idl Wed Aug 18 16:01:17 2010 +0100 @@ -195,7 +195,7 @@ libxl_device_console = Struct("device_co ("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), ]) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |