|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] [PATCH 18 of 26] libxl: use libxl_version_info_destroy	inste
 
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1281969065 -3600
# Node ID b8069740f4aa7ab792497a9d4a65b614ee94aadd
# Parent  f00e5b9e555fee97d60a98fe11a6d856b27bb3b0
libxl: use libxl_version_info_destroy instead of hand-coded do_free_version_info
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r f00e5b9e555f -r b8069740f4aa tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Mon Aug 16 15:31:05 2010 +0100
+++ b/tools/libxl/libxl.c       Mon Aug 16 15:31:05 2010 +0100
@@ -64,11 +64,10 @@ int libxl_ctx_init(libxl_ctx *ctx, int v
     return 0;
 }
 
-static void do_free_version_info(libxl_version_info *info);
 int libxl_ctx_free(libxl_ctx *ctx)
 {
     xc_interface_close(ctx->xch);
-    do_free_version_info(&ctx->version_info);
+    libxl_version_info_destroy(&ctx->version_info);
     if (ctx->xsh) xs_daemon_close(ctx->xsh); 
     return 0;
 }
@@ -2872,18 +2871,6 @@ int libxl_get_physinfo(libxl_ctx *ctx, l
     return 0;
 }
 
-static void do_free_version_info(libxl_version_info *info)
-{
-    free(info->xen_version_extra);
-    free(info->compiler);
-    free(info->compile_by);
-    free(info->compile_domain);
-    free(info->compile_date);
-    free(info->capabilities);
-    free(info->changeset);
-    free(info->commandline);
-}
-
 const libxl_version_info* libxl_get_version_info(libxl_ctx *ctx)
 {
     union {
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-devel] [PATCH 10 of 26] libxl: tweak formatting/whitespace of	_libxl_types.h, (continued)
- [Xen-devel] [PATCH 10 of 26] libxl: tweak formatting/whitespace of	_libxl_types.h, Ian Campbell
 
- [Xen-devel] [PATCH 15 of 26] libxl: do not generate a destructor	for data types which do not require one, Ian Campbell
 
- [Xen-devel] [PATCH 09 of 26] libxl: move type definitions into	_libxl_types.h, Ian Campbell
 
- [Xen-devel] [PATCH 03 of 26] libxl: move various enum and #defines	above datastructure definitions, Ian Campbell
 
- [Xen-devel] [PATCH 12 of 26] libxl: generate destructors for each	libxl defined type, Ian Campbell
 
- [Xen-devel] [PATCH 14 of 26] libxl: build info bootloader{,	_args} are not const, Ian Campbell
 
- [Xen-devel] [PATCH 13 of 26] libxl:	libxl_device_console.build_state is const, Ian Campbell
 
- [Xen-devel] [PATCH 11 of 26] libxl: autogenerate _libxl_types.h, Ian Campbell
 
- [Xen-devel] [PATCH 18 of 26] libxl: use libxl_version_info_destroy	instead of hand-coded do_free_version_info,
Ian Campbell <=
 
- [Xen-devel] [PATCH 16 of 26] libxl: implement destroy for	libxl_file_reference builtin type, Ian Campbell
 
- [Xen-devel] [PATCH 20 of 26] xl: free all data on exit from the	domain monitor daemon, Ian Campbell
 
 
 
 
[Xen-devel] [PATCH 17 of 26] xl: free the libxl types contained in	struct domain_config, Ian Campbell
[Xen-devel] [PATCH 21 of 26] libxl/xl: use libxl_diskinfo_destroy	and libxl_device_disk_destroy, Ian Campbell
[Xen-devel] [PATCH 23 of 26] libxl/xl: Use libxl_vcpuinfo_destroy, Ian Campbell
[Xen-devel] [PATCH 19 of 26] xl: destroy device model info after	creation, Ian Campbell
 |  
  
 | 
    | 
  
  
    |   | 
    |