linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [PATCH] fsck.f2fs: free node_blk to avoid memory leak
@ 2016-09-21 13:01 Yunlong Song
  2016-09-22 10:52 ` Chao Yu
  0 siblings, 1 reply; 2+ messages in thread
From: Yunlong Song @ 2016-09-21 13:01 UTC (permalink / raw)
  To: jaegeuk, yuchao0, yunlong.song; +Cc: linux-f2fs-devel

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
---
 fsck/fsck.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fsck/fsck.c b/fsck/fsck.c
index e2081c8..2a4df7b 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -1696,6 +1696,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)
-- 
1.8.5.2


------------------------------------------------------------------------------

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-22 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-21 13:01 [PATCH] fsck.f2fs: free node_blk to avoid memory leak Yunlong Song
2016-09-22 10:52 ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).