Mailing List Archive

[xen-unstable] libxenlight: don't free ifname, can lead to double free
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1262951098 0
# Node ID 5254234fdb71d7d77910b1f86e2abfab201e7451
# Parent 5a5c2ed76aaf125beadcfc65c2a8e5450c19588e
libxenlight: don't free ifname, can lead to double free

ifname is mostly handled directly in xl now, do not attempts to free
this.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
---
tools/libxl/xl.c | 3 ---
1 files changed, 3 deletions(-)

diff -r 5a5c2ed76aaf -r 5254234fdb71 tools/libxl/xl.c
--- a/tools/libxl/xl.c Fri Jan 08 11:44:15 2010 +0000
+++ b/tools/libxl/xl.c Fri Jan 08 11:44:58 2010 +0000
@@ -888,9 +888,6 @@ start:
}

close(logfile);
- for (i = 0; i < num_vifs; i++) {
- free(vifs[i].ifname);
- }
free(disks);
free(vifs);
free(vfbs);

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