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:
a451d92
)
Fix memory leak in ext2fs_alloc_block()
author
Theodore Ts'o
<tytso@mit.edu>
Tue, 19 Feb 2008 13:33:50 +0000
(08:33 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 19 Feb 2008 13:40:27 +0000
(08:40 -0500)
If a block buffer was not supplied and ext2fs_alloc_block() returned
with no errors, it would leak a temporary block buffer.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/alloc.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/alloc.c
b/lib/ext2fs/alloc.c
index
7385123
..
65f3ea1
100644
(file)
--- a/
lib/ext2fs/alloc.c
+++ b/
lib/ext2fs/alloc.c
@@
-134,7
+134,6
@@
errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal,
ext2fs_block_alloc_stats(fs, block, +1);
*ret = block;
- return 0;
fail:
if (buf)