linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] e2freefrag: fix memory leak in scan_online()
@ 2019-01-15 13:42 Lukas Czerner
  2019-01-15 13:42 ` [PATCH 2/2] e2fsprogs: fix potential memory leak in path_append() Lukas Czerner
  2019-02-11 16:53 ` [PATCH 1/2] e2freefrag: fix memory leak in scan_online() Theodore Y. Ts'o
  0 siblings, 2 replies; 4+ messages in thread
From: Lukas Czerner @ 2019-01-15 13:42 UTC (permalink / raw)
  To: linux-ext4

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
---
 misc/e2freefrag.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc/e2freefrag.c b/misc/e2freefrag.c
index f7fede54..935ae225 100644
--- a/misc/e2freefrag.c
+++ b/misc/e2freefrag.c
@@ -236,6 +236,7 @@ static int scan_online(ext2_filsys fs, struct chunk_info *info,
 		fsmap_advance(fsmap);
 	}
 
+	free(fsmap);
 	return 1;
 }
 #else
-- 
2.20.1

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

end of thread, other threads:[~2019-02-11 17:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-15 13:42 [PATCH 1/2] e2freefrag: fix memory leak in scan_online() Lukas Czerner
2019-01-15 13:42 ` [PATCH 2/2] e2fsprogs: fix potential memory leak in path_append() Lukas Czerner
2019-02-11 17:55   ` Theodore Y. Ts'o
2019-02-11 16:53 ` [PATCH 1/2] e2freefrag: fix memory leak in scan_online() Theodore Y. Ts'o

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).