]> xenbits.xensource.com Git - xen.git/commit
xl: free pid string in do_daemonize
authorWei Liu <wei.liu2@citrix.com>
Thu, 23 Jul 2015 07:59:05 +0000 (08:59 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 24 Jul 2015 10:27:52 +0000 (11:27 +0100)
commit6aef0ff045fe46bac58d3fca8b10fa688fad6e47
tree6bf51145008565d482251e5a395588f00fdf9c09
parentda66099b8b698bca3ca842d5ad67588444ab2537
xl: free pid string in do_daemonize

Pid is a null terminated string allocated by asprintf. It should be
freed after use.

Also fixed a coding style problem while I was there.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c