diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 6b5f715e29..931c6b35cf 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -469,7 +469,6 @@ static int get_all_assigned_devices(libxl__gc *gc, libxl_device_pci **list, int } if ( 0 == *num ) { - free(pcidevs); pcidevs = NULL; }else{ *list = pcidevs;