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

Re: [Xen-devel] [PATCH 1 of 5] libxl: fix memory management in "xl network-attach"



On Mon, 28 Mar 2011, David Scott wrote:
> # HG changeset patch
> # User David Scott <dave.scott@xxxxxxxxxxxxx>
> # Date 1301314652 -3600
> # Node ID 85361e3dab12827c6321931c9e09d02fb22578ee
> # Parent  a65612bcbb921e98a8843157bf365e4ab16e8144
> libxl: fix memory management in "xl network-attach"
> 
> The libxl_device_nic struct has strings which are initially strdup()ed and 
> then free()ed in libxl_device_nic_destroy(). In the "network-attach" parser 
> we need to free() the existing string and strdup((*argv) + N), rather than 
> just copying the pointer.
> 
> Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>
> 

Thanks for the patch!

Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>

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