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:
d887b93
)
e2fsck: fix memory leak on error path in read_bad_blocks_files()
author
Theodore Ts'o
<tytso@mit.edu>
Tue, 7 Jan 2014 05:47:40 +0000
(
00:47
-0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 7 Jan 2014 14:10:24 +0000
(09:10 -0500)
Addresses-Coverity-Id: #1049170
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/badblocks.c
patch
|
blob
|
history
diff --git
a/e2fsck/badblocks.c
b/e2fsck/badblocks.c
index
8519df0
..
7f3641b
100644
(file)
--- a/
e2fsck/badblocks.c
+++ b/
e2fsck/badblocks.c
@@
-111,6
+111,8
@@
void read_bad_blocks_file(e2fsck_t ctx, const char *bad_blocks_file,
fatal:
ctx->flags |= E2F_FLAG_ABORT;
+ if (bb_list)
+ ext2fs_badblocks_list_free(bb_list);
return;
}