WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] libxl: fix free of uninitialised "disks"

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: fix free of uninitialised "disks" variable
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 Jan 2011 06:45:21 -0800
Delivery-date: Thu, 06 Jan 2011 06:46:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Yang Z Zhang <yang.z.zhang@xxxxxxxxx>
# Date 1294270652 0
# Node ID 77f1af42ca396837650450e9b96338278dc439d3
# Parent  e0db3784a4a234f99ef417f4cd9377010a8d127a
libxl: fix free of uninitialised "disks" variable

Reported-by: Wei Huang <wei.huang2@xxxxxxx>
Reported-by: Christoph Egger <Christoph.Egger@xxxxxxx>
Author: Yang Z Zhang <yang.z.zhang@xxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxl/libxl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r e0db3784a4a2 -r 77f1af42ca39 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Wed Jan 05 23:31:24 2011 +0000
+++ b/tools/libxl/libxl.c       Wed Jan 05 23:37:32 2011 +0000
@@ -1402,8 +1402,8 @@ static char ** libxl_build_device_model_
             }
             libxl_device_disk_destroy(&disks[i]);
         }
-    }
-    free(disks);
+        free(disks);
+    }
     flexarray_set(dm_args, num++, NULL);
     return (char **) flexarray_contents(dm_args);
 }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxl: fix free of uninitialised "disks" variable, Xen patchbot-unstable <=