libxl_json: remove extra "break"

... 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>
(cherry picked from commit 3eb54a2fdb)
This commit is contained in:
Wei Liu authored and Ian Jackson committed 2014-05-22 16:48:19 +01:00
1 parent 6ce0c3fca9
commit d6eff6fcc0
1 file changed
-1
-1
View 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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.