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:
bbbb81c
)
libext2fs: fix memory leak in error path in ext2fs_block_iterate2()
author
Theodore Ts'o
<tytso@mit.edu>
Sat, 18 Jul 2009 14:02:41 +0000
(10:02 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 18 Jul 2009 14:02:41 +0000
(10:02 -0400)
Reported-by: Nic Case <number9652@yahoo.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/block.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/block.c
b/lib/ext2fs/block.c
index
de5342d
..
490116d
100644
(file)
--- a/
lib/ext2fs/block.c
+++ b/
lib/ext2fs/block.c
@@
-488,8
+488,10
@@
errcode_t ext2fs_block_iterate2(ext2_filsys fs,
abort_exit:
if (ret & BLOCK_CHANGED) {
retval = ext2fs_write_inode(fs, ino, &inode);
- if (retval)
- return retval;
+ if (retval) {
+ ret |= BLOCK_ERROR;
+ ctx.errcode = retval;
+ }
}
errout:
if (!block_buf)