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

[Xen-changelog] [xen-unstable] libxenlight: don't free ifname, can lead to double free



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# 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@xxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
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®.