[sheepdog] [PATCH] sheep: fix memory leaks at start_deletion()

Liu Yuan namei.unix at gmail.com
Tue Dec 17 07:11:39 CET 2013


On Tue, Dec 17, 2013 at 10:54:04AM +0900, Hitoshi Mitake wrote:
> At Mon, 16 Dec 2013 23:00:18 +0900,
> Ryusuke Konishi wrote:
> > 
> > The start_deletion function does not free the deletion_work structure
> > nor the buffer (dw->buf) that it locally allocated when it deletes
> > inode of the VDI or dw->count was equal to zero.
> > 
> > This fixes these leak bugs.
> > 
> > Signed-off-by: Ryusuke Konishi <konishi.ryusuke at lab.ntt.co.jp>
> > ---
> >  sheep/vdi.c |   10 ++++++----
> >  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> Looks good to me.
> Reviewed-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> 

Applied thanks

Yuan



More information about the sheepdog mailing list