fsck.f2fs: free node_blk to avoid memory leak
authorYunlong Song <yunlong.song@huawei.com>
Wed, 21 Sep 2016 13:01:55 +0000 (21:01 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 22 Sep 2016 18:40:37 +0000 (11:40 -0700)
Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c

index 301685b..3c28f2a 100644 (file)
@@ -1695,6 +1695,7 @@ static void fix_hard_links(struct f2fs_sb_info *sbi)
                node = node->next;
                free(tmp);
        }
+       free(node_blk);
 }
 
 static void fix_nat_entries(struct f2fs_sb_info *sbi)