Re: [Xen-devel] [PATCH for-4.5] xl: fix two memory leaks

2014-12-01 Thread Ian Campbell
On Sun, 2014-11-30 at 21:54 +, Wei Liu wrote: There are two invocations of libxl_basename, which returns a malloc'ed string. Those strings should be freed after used. Signed-off-by: Wei Liu wei.l...@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Ian Jackson

Re: [Xen-devel] [PATCH for-4.5] xl: fix two memory leaks

2014-12-01 Thread Wei Liu
On Mon, Dec 01, 2014 at 09:34:47AM +, Ian Campbell wrote: On Sun, 2014-11-30 at 21:54 +, Wei Liu wrote: There are two invocations of libxl_basename, which returns a malloc'ed string. Those strings should be freed after used. Signed-off-by: Wei Liu wei.l...@citrix.com Cc: Ian

Re: [Xen-devel] [PATCH for-4.5] xl: fix two memory leaks

2014-12-01 Thread Ian Campbell
On Mon, 2014-12-01 at 10:10 +, Wei Liu wrote: On Mon, Dec 01, 2014 at 09:34:47AM +, Ian Campbell wrote: On Sun, 2014-11-30 at 21:54 +, Wei Liu wrote: There are two invocations of libxl_basename, which returns a malloc'ed string. Those strings should be freed after used.

[Xen-devel] [PATCH for-4.5] xl: fix two memory leaks

2014-11-30 Thread Wei Liu
There are two invocations of libxl_basename, which returns a malloc'ed string. Those strings should be freed after used. Signed-off-by: Wei Liu wei.l...@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com --- tools/libxl/xl_cmdimpl.c |9 +++-- 1