nilfs2: fix memory leak in nilfs_ioctl_clean_segments

This fixes a new memory leak problem in garbage collection. The
problem was brought by the bugfix patch ("nilfs2: fix lock order
reversal in nilfs_clean_segments ioctl").

Thanks to Kentaro Suzuki for finding this problem.

Reported-by: Kentaro Suzuki <k_suzuki@ms.sylc.co.jp>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>

+1 -1
+1 -1
fs/nilfs2/ioctl.c
··· 576 576 ret = nilfs_clean_segments(inode->i_sb, argv, kbufs); 577 577 578 578 out_free: 579 - while (--n > 0) 579 + while (--n >= 0) 580 580 vfree(kbufs[n]); 581 581 kfree(kbufs[4]); 582 582 return ret;