[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: make libxl__free_all idempotent
# HG changeset patch # User Ian Jackson <ian.jackson@xxxxxxxxxxxxx> # Date 1323712121 0 # Node ID 337a44d90113ccda864138fb7cc3d2b36d0c7a15 # Parent ee846408203cf4190bd090664194c714909494d6 libxl: make libxl__free_all idempotent Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Committed-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- diff -r ee846408203c -r 337a44d90113 tools/libxl/libxl_internal.c --- a/tools/libxl/libxl_internal.c Mon Dec 12 17:48:41 2011 +0000 +++ b/tools/libxl/libxl_internal.c Mon Dec 12 17:48:41 2011 +0000 @@ -72,6 +72,8 @@ free(ptr); } free(gc->alloc_ptrs); + gc->alloc_ptrs = 0; + gc->alloc_maxsize = 0; } void *libxl__zalloc(libxl__gc *gc, int bytes) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |