Re: [Qemu-devel] [PATCH] 9pfs: fix memory leak in v9fs_link

2016-10-12 Thread Greg Kurz
On Wed, 12 Oct 2016 00:12:48 -0700 Li Qiang wrote: > From: Li Qiang > > In v9fs_link dispatch function, it doesn't put the 'oldfidp' > fid object, this will make the 'oldfidp->ref' never reach to 0, > thus leading a memory leak issue. This patch fix this. >

[Qemu-devel] [PATCH] 9pfs: fix memory leak in v9fs_link

2016-10-12 Thread Li Qiang
From: Li Qiang In v9fs_link dispatch function, it doesn't put the 'oldfidp' fid object, this will make the 'oldfidp->ref' never reach to 0, thus leading a memory leak issue. This patch fix this. Signed-off-by: Li Qiang --- hw/9pfs/9p.c | 1 + 1 file