Whamcloud - gitweb
tune2fs: fix memory leak in inode_scan_and_fix()
authorXiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Wed, 3 Dec 2014 02:06:40 +0000 (21:06 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Dec 2014 02:06:45 +0000 (21:06 -0500)
commit5da8912008bbcfcaef3c8109831fdb4af40cd4fd
treee0dfcbcfd049d8c0e7bebc747b24e467f3821853
parente68476935b139532accae76c8f8af0c86479e102
tune2fs: fix memory leak in inode_scan_and_fix()

When we use ext2fs_open_inode_scan() to iterate inodes and finish
jobs, we also need a ext2fs_close_inode_scan(scan) operation, but in
inode_scan_and_fix(), we forgot to call it, fix this error.

Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c