[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4E4B7224.9050803@sx.jp.nec.com>
Date: Wed, 17 Aug 2011 16:47:48 +0900
From: Kazuya Mio <k-mio@...jp.nec.com>
To: ext4 <linux-ext4@...r.kernel.org>, Theodore Tso <tytso@....edu>
Subject: [PATCH v2 08/12] e4defrag: Fix memory leak in file_defrag()
'donor_list' is allocated in get_file_extents(), but it's not freed.
This patch fixes it.
Signed-off-by: Kazuya Mio <k-mio@...jp.nec.com>
---
misc/e4defrag.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/misc/e4defrag.c b/misc/e4defrag.c
index d09ca5f..d1e09b3 100644
--- a/misc/e4defrag.c
+++ b/misc/e4defrag.c
@@ -1171,6 +1171,7 @@ out:
if (donor_fd != -1)
close(donor_fd);
free_ext(orig_list);
+ free_ext(donor_list);
free_exts_group(orig_group_head);
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists