[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.2] libxl_json: remove extra "break"



commit a4ef5ac91710e1a40afbe0e4782e1473e6cd6405
Author:     Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Wed Apr 9 14:29:13 2014 +0100
Commit:     Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CommitDate: Thu May 22 16:48:34 2014 +0100

    libxl_json: remove extra "break"
    
    ... otherwise JSON array elements are not freed and memory is leaked.
    
    Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
    Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
    (cherry picked from commit 3eb54a2fdbc216b39dc2c0a86f11a32d4c838269)
    (cherry picked from commit d6eff6fcc05f7167e5b2232d3bc60047fffb8fc4)
    (cherry picked from commit a14bb4db517ca076ad7d785be52d4bd7a6df6de9)
---
 tools/libxl/libxl_json.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c
index 0810630..cd036ab 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)
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.2

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.