Skip to content

Commit

Permalink
rezize2fs: fix memory leak when fixing up the orphan file inode
Browse files Browse the repository at this point in the history
Fixes: ff4f46b ("resize2fs: rewrite the checksums in the orphan...")
Signed-off-by: Theodore Ts'o <[email protected]>
  • Loading branch information
tytso committed Dec 11, 2024
1 parent c1e0fa3 commit a684ada
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resize/resize2fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a684ada

Please sign in to comment.