Re: [Qemu-devel] [PATCH] fsdev: fix memory leak in main()

2017-07-27 Thread Greg Kurz
On Thu, 27 Jul 2017 08:31:42 +0800 ZhiPeng Lu wrote: > @rpath and @ sock_name are not freed and leaked. > The leak is harmless since the process is expected to terminate when main() returns. So, even if I fully agree that we should always take care of allocated memory, I will push it to my 9p-ne

[Qemu-devel] [PATCH] fsdev: fix memory leak in main()

2017-07-26 Thread ZhiPeng Lu
@rpath and @ sock_name are not freed and leaked. Signed-off-by: Zhipeng Lu lu.zhip...@zte.com.cn --- fsdev/virtfs-proxy-helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index 6c066ec..8e48500 100644 --- a/fsdev/virtfs-proxy-h