[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: libxl_ctx_free should free the ctx



# HG changeset patch
# User Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
# Date 1323712122 0
# Node ID b5d6ed400122d008dc807300eaf705a3ec6bbd67
# Parent  337a44d90113ccda864138fb7cc3d2b36d0c7a15
libxl: libxl_ctx_free should free the ctx

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---


diff -r 337a44d90113 -r b5d6ed400122 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Mon Dec 12 17:48:41 2011 +0000
+++ b/tools/libxl/libxl.c       Mon Dec 12 17:48:42 2011 +0000
@@ -93,6 +93,7 @@
     if (ctx->xch) xc_interface_close(ctx->xch);
     libxl_version_info_dispose(&ctx->version_info);
     if (ctx->xsh) xs_daemon_close(ctx->xsh);
+    free(ctx);
     return 0;
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.