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

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 > > Cc: Ian Campbell >

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 > Cc: Ian Campbell > Cc: Ian Jackson > --- > tools/libxl/xl_cmdimpl.c |9 +++-- > 1

[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 Cc: Ian Campbell Cc: Ian Jackson --- tools/libxl/xl_cmdimpl.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/li