Whamcloud - gitweb
libext2fs: Fix memory leak in the extents handling function
authorTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jun 2009 05:34:43 +0000 (01:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jun 2009 05:34:43 +0000 (01:34 -0400)
commit7b59b4a8ee4a65ef14eb364cde574d34ec8c014f
treeab6815244cfecf758ea1a3e83cad3037bc21a031
parent58d29ed48a14154ef9887fb0d8c436cb72d63e23
libext2fs: Fix memory leak in the extents handling function

Each time an extent handle is opened and closed, if the inode has an
extent tree which does not fit in the inode's i_block structure, a
filesystem block buffer was not getting released.  Since e2fsck opens
an extent handle for every inode using extents, this can translate to
a very large amount of memory getting lost.

Thanks to Henrik 'Mauritz' Johnson for discovering and pointing out
this leak, which he ran into while running the "rdump" command in
debugfs.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/extent.c