Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e0fa3
)
rezize2fs: fix memory leak when fixing up the orphan file inode
author
Theodore Ts'o
<tytso@mit.edu>
Wed, 11 Dec 2024 04:59:59 +0000
(23:59 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 11 Dec 2024 04:59:59 +0000
(23:59 -0500)
Fixes:
ff4f46b4fdb2
("resize2fs: rewrite the checksums in the orphan...")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/resize2fs.c
patch
|
blob
|
history
diff --git
a/resize/resize2fs.c
b/resize/resize2fs.c
index
28f33d8
..
c8964af
100644
(file)
--- a/
resize/resize2fs.c
+++ b/
resize/resize2fs.c
@@
-2909,6
+2909,7
@@
static errcode_t fix_orphan_file_inode(ext2_filsys fs)
retval = ext2fs_block_iterate3(fs, fs->super->s_orphan_file_inum,
BLOCK_FLAG_DATA_ONLY,
orphan_buf, process_orphan_block, &pd);
+ free(orphan_buf);
return (retval ? retval : pd.errcode);
}