public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: added missing kfree
@ 2025-05-02 17:40 Nicolas Bretz
  2025-05-02 20:37 ` Darrick J. Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Bretz @ 2025-05-02 17:40 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso, jack, adilger.kernel, Nicolas Bretz

Added one missing kfree to fsmap.c

Signed-off-by: Nicolas Bretz <bretznic@gmail.com>
---
 fs/ext4/fsmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/ext4/fsmap.c b/fs/ext4/fsmap.c
index b232c2767534..d41210abea0c 100644
--- a/fs/ext4/fsmap.c
+++ b/fs/ext4/fsmap.c
@@ -304,6 +304,7 @@ static inline int ext4_getfsmap_fill(struct list_head *meta_list,
 	fsm->fmr_length = len;
 	list_add_tail(&fsm->fmr_list, meta_list);
 
+	kfree(fsm);
 	return 0;
 }
 
-- 
2.43.0


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

end of thread, other threads:[~2025-05-04  0:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-02 17:40 [PATCH] ext4: added missing kfree Nicolas Bretz
2025-05-02 20:37 ` Darrick J. Wong
2025-05-02 22:26   ` Nicolas Bretz
2025-05-03 16:45     ` Theodore Ts'o
2025-05-04  0:48       ` Nicolas Bretz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox