Whamcloud - gitweb
libext2fs: fix memory leak when failing to iterate inline_data directory
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 10 Aug 2014 22:32:21 +0000 (18:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 10 Aug 2014 22:32:21 +0000 (18:32 -0400)
commit657f508cbf4c2ff180ea086bd7041125ec4e5b61
tree89f94d171b9a101696c1c83e5b8837319ed687bf
parent996999a1a45e1d36ff0e24925ee02fca87ad8283
libext2fs: fix memory leak when failing to iterate inline_data directory

The xattr_get method returns to us a pointer to a buffer containing
the EA value.  If for some reason we decide to fail out of iterating
the EA part of an inline-data directory, we must free the buffer that
xattr_get passed to us (via inline_data_ea_get).

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/inline_data.c