* [PATCH 07/11] e4defrag: Fix memory leak in file_defrag()
@ 2011-04-08 7:52 Kazuya Mio
0 siblings, 0 replies; only message in thread
From: Kazuya Mio @ 2011-04-08 7:52 UTC (permalink / raw)
To: ext4, Theodore Tso
'donor_list' is allocated in get_file_extents(), but it's not freed.
This patch fixes it.
Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
---
misc/e4defrag.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/misc/e4defrag.c b/misc/e4defrag.c
index f4ced9a..ba0d424 100644
--- a/misc/e4defrag.c
+++ b/misc/e4defrag.c
@@ -1191,6 +1191,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;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-08 8:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-08 7:52 [PATCH 07/11] e4defrag: Fix memory leak in file_defrag() Kazuya Mio
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.