debuggers.hg

changeset 22084:5aa4671f4fa4

libxl: use libxl_version_info_destroy, not hand-coded do_free_version_info

[PATCH 11 of 16 of
libxl: autogenerate type definitions and destructor functions]

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Ian Campbell <ian.campbell@citrix.com>
date Thu Aug 19 15:30:48 2010 +0100 (2010-08-19)
parents f7d818754afb
children dc381437e19d
files tools/libxl/libxl.c
line diff
     1.1 --- a/tools/libxl/libxl.c	Thu Aug 19 15:29:57 2010 +0100
     1.2 +++ b/tools/libxl/libxl.c	Thu Aug 19 15:30:48 2010 +0100
     1.3 @@ -63,11 +63,10 @@ int libxl_ctx_init(libxl_ctx *ctx, int v
     1.4      return 0;
     1.5  }
     1.6  
     1.7 -static void do_free_version_info(libxl_version_info *info);
     1.8  int libxl_ctx_free(libxl_ctx *ctx)
     1.9  {
    1.10      xc_interface_close(ctx->xch);
    1.11 -    do_free_version_info(&ctx->version_info);
    1.12 +    libxl_version_info_destroy(&ctx->version_info);
    1.13      if (ctx->xsh) xs_daemon_close(ctx->xsh); 
    1.14      return 0;
    1.15  }
    1.16 @@ -2856,18 +2855,6 @@ int libxl_get_physinfo(libxl_ctx *ctx, l
    1.17      return 0;
    1.18  }
    1.19  
    1.20 -static void do_free_version_info(libxl_version_info *info)
    1.21 -{
    1.22 -    free(info->xen_version_extra);
    1.23 -    free(info->compiler);
    1.24 -    free(info->compile_by);
    1.25 -    free(info->compile_domain);
    1.26 -    free(info->compile_date);
    1.27 -    free(info->capabilities);
    1.28 -    free(info->changeset);
    1.29 -    free(info->commandline);
    1.30 -}
    1.31 -
    1.32  const libxl_version_info* libxl_get_version_info(libxl_ctx *ctx)
    1.33  {
    1.34      union {