[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] libxl: fix double free at get_all_assigned_devices
# HG changeset patch # User Marek Marczykowski <marmarek@xxxxxxxxxxxx> # Date 1315172996 -7200 # Node ID 4683409fac3d4fef836ce78f01f12b31f5f9e12a # Parent 6239209bb560b4931d4d97456c82c1a5ca4bd10a 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> diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -469,7 +469,6 @@ static int get_all_assigned_devices(libx } if ( 0 == *num ) { - free(pcidevs); pcidevs = NULL; }else{ *list = pcidevs; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |