|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 3/4] libxl: add version_info function [and 1 more
On 19/04/10 16:36, Ian Jackson wrote:
I don't think that's correct because memory allocated by libxl_sprintf
does not survive return from libxl into the caller.
It survives as long as the context is not ctx_free. i.e. if the data
need to preserve longer, they will have do be duplicated before freeing
the context.
This is to get away with having to deal with memory leak as much as
possible and potential more complex code related to errors handling.
--
Vincent
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|