From: Wei Liu Date: Wed, 9 Apr 2014 13:29:13 +0000 (+0100) Subject: libxl_json: remove extra "break" X-Git-Tag: 4.2.5-rc1~15 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a4ef5ac91710e1a40afbe0e4782e1473e6cd6405;p=xen.git libxl_json: remove extra "break" ... otherwise JSON array elements are not freed and memory is leaked. Signed-off-by: Wei Liu Acked-by: Ian Campbell (cherry picked from commit 3eb54a2fdbc216b39dc2c0a86f11a32d4c838269) (cherry picked from commit d6eff6fcc05f7167e5b2232d3bc60047fffb8fc4) (cherry picked from commit a14bb4db517ca076ad7d785be52d4bd7a6df6de9) --- diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c index 08106306a1..cd036abbd7 100644 --- a/tools/libxl/libxl_json.c +++ b/tools/libxl/libxl_json.c @@ -300,7 +300,6 @@ void libxl__json_object_free(libxl__gc *gc, libxl__json_object *obj) } case JSON_ARRAY: { libxl__json_object *node = NULL; - break; for (index = 0; index < obj->u.array->count; index++) { if (flexarray_get(obj->u.array, index, (void**)&node) != 0)