On 01/03/17 12:07, Wei Liu wrote:
> Coverity-ID: 1401603
> 
> Signed-off-by: Wei Liu <[email protected]>
> ---
> Cc: Ian Jackson <[email protected]>
> Cc: Juergen Gross <[email protected]> 
> ---
>  tools/xenstore/xenstored_control.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/xenstore/xenstored_control.c 
> b/tools/xenstore/xenstored_control.c
> index 7c149117b1..d99b7eb7f9 100644
> --- a/tools/xenstore/xenstored_control.c
> +++ b/tools/xenstore/xenstored_control.c
> @@ -171,6 +171,8 @@ static int do_control_help(void *ctx, struct connection 
> *conn,
>       resp[len] = 0;
>  
>       send_reply(conn, XS_CONTROL, resp, len);
> +
> +     talloc_free(resp);

Sorry, no. The context for the allocation is "in" which will be freed
automatically.


Juergen


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Reply via email to