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

[Xen-changelog] [xen-4.1-testing] libxl: fix double free at get_all_assigned_devices



# HG changeset patch
# User Marek Marczykowski <marmarek@xxxxxxxxxxxx>
# Date 1317140837 -3600
# Node ID 5c395e993fe4064f0e3e13af70af9e440dc00689
# Parent  2112db7c68b3423c7ff9ead91eff5de2d13a13b5
libxl: fix double free at get_all_assigned_devices

Do not free() list manually - it will be freed by libxl__free_all.

Signed-off-by: Marek Marczykowski <marmarek@xxxxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 2112db7c68b3 -r 5c395e993fe4 tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c   Wed Sep 21 17:12:58 2011 +0100
+++ b/tools/libxl/libxl_pci.c   Tue Sep 27 17:27:17 2011 +0100
@@ -469,7 +469,6 @@
     }
 
     if ( 0 == *num ) {
-        free(pcidevs);
         pcidevs = NULL;
     }else{
         *list = pcidevs;

_______________________________________________
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®.