[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OPW PATCH] tools/xl:Making _dispose function simplicity for libxl_dominfo
This patch simplifies the call to dispose for libxl_dominfo *info. _dispose was called multiple times in tools/libxl/xl_cmdimpl.c IDL generated libxl types should be used only after calling the init function. Signed-off-by: Uma Sharma <uma.sharma523@xxxxxxxxx> -- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 5325a52..9a6ceb3 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -4375,12 +4375,8 @@ int main_list(int argc, char **argv) list_domains_details(info, nb_domain); else list_domains(verbose, context, 0 /* claim */, numa, info, nb_domain); - - if (info_free) - libxl_dominfo_list_free(info, nb_domain); - else - libxl_dominfo_dispose(info); - + + libxl_dominfo_list_free(info, nb_domain); return 0; } _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |