]> xenbits.xensource.com Git - xen.git/commitdiff
libxl_json: remove extra "break"
authorWei Liu <wei.liu2@citrix.com>
Wed, 9 Apr 2014 13:29:13 +0000 (14:29 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 9 Apr 2014 14:38:31 +0000 (15:38 +0100)
... otherwise JSON array elements are not freed and memory is leaked.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_json.c

index d2f7de878d5b30aa4f71b9d69f441d84bc8c9136..989ac3f441a81759249df0565b31335b68208e23 100644 (file)
@@ -285,7 +285,6 @@ void libxl__json_object_free(libxl__gc *gc, libxl__json_object *obj)
     }
     case JSON_ARRAY: {
         libxl__json_object *node = NULL;
-        break;
 
         for (idx = 0; idx < obj->u.array->count; idx++) {
             if (flexarray_get(obj->u.array, idx, (void**)&node) != 0)