|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH RFC v2 11/13] libxl: make libxl__free_all idempotent
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
tools/libxl/libxl_internal.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/libxl/libxl_internal.c b/tools/libxl/libxl_internal.c
index df2b7f8..62e7fba 100644
--- a/tools/libxl/libxl_internal.c
+++ b/tools/libxl/libxl_internal.c
@@ -72,6 +72,8 @@ void libxl__free_all(libxl__gc *gc)
free(ptr);
}
free(gc->alloc_ptrs);
+ gc->alloc_ptrs = 0;
+ gc->alloc_maxsize = 0;
}
void *libxl__zalloc(libxl__gc *gc, int bytes)
--
1.7.2.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH RFC v2 01/13] libxl: Make libxl__xs_* more const-correct, (continued)
- [Xen-devel] [PATCH RFC v2 01/13] libxl: Make libxl__xs_* more const-correct, Ian Jackson
- [Xen-devel] [PATCH RFC v2 02/13] libxenstore: Provide xs_check_watch, Ian Jackson
- [Xen-devel] [PATCH RFC v2 03/13] libxl: Provide a version of bsd's queue.h as _libxl_list.h, Ian Jackson
- [Xen-devel] [PATCH RFC v2 04/13] libxl: idl: support new "c_only" type attribute, Ian Jackson
- [Xen-devel] [PATCH RFC v2 05/13] libxl: idl: Provide struct and union tags, Ian Jackson
- [Xen-devel] [PATCH RFC v2 06/13] libxl: permit declaration after statement, Ian Jackson
- [Xen-devel] [PATCH RFC v2 07/13] libxl: internal convenience macros, Ian Jackson
- [Xen-devel] [PATCH RFC v2 08/13] libxl: Rationalise #includes, Ian Jackson
- [Xen-devel] [PATCH RFC v2 09/13] libxl: introduce lock in libxl_ctx, Ian Jackson
- [Xen-devel] [PATCH RFC v2 10/13] libxl: make libxl__[v]log const-correct, Ian Jackson
- [Xen-devel] [PATCH RFC v2 11/13] libxl: make libxl__free_all idempotent,
Ian Jackson <=
- [Xen-devel] [PATCH RFC v2 12/13] libxl: New API for providing OS events to libxl, Ian Jackson
- [Xen-devel] [PATCH RFC v2 13/13] libxl: New event generation API, Ian Jackson
- Re: [Xen-devel] [PATCH RFC v2 13/13] libxl: New event generation API, Ian Campbell
- Re: [Xen-devel] [PATCH RFC v2 12/13] libxl: New API for providing OS events to libxl, Ian Campbell
- Re: [Xen-devel] [PATCH RFC v2 11/13] libxl: make libxl__free_all idempotent, Ian Campbell
- Re: [Xen-devel] [PATCH RFC v2 10/13] libxl: make libxl__[v]log const-correct, Ian Campbell
- Re: [Xen-devel] [PATCH RFC v2 09/13] libxl: introduce lock in libxl_ctx, Ian Campbell
- Re: [Xen-devel] [PATCH RFC v2 08/13] libxl: Rationalise #includes, Ian Campbell
- Re: [Xen-devel] [PATCH RFC v2 07/13] libxl: internal convenience macros, Ian Campbell
- Re: [Xen-devel] [PATCH RFC v2 06/13] libxl: permit declaration after statement, Ian Campbell
|
|
|
|
|