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

[Xen-devel] Re: [PATCH] libxl: fix double free at get_all_assigned_devices



On 04.09.2011 23:50, Marek Marczykowski wrote:
> # 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>

Ah, it is for xen-4.1. In unstable seems to be ok.

> 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;
> 
> 


-- 
Pozdrawiam / Best Regards,
Marek Marczykowski         | RLU #390519
marmarek at mimuw edu pl   | xmpp:marmarek at staszic waw pl

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.