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:
b34b94d
)
e2fsck: fix possible double free when searching for config file
author
Theodore Ts'o
<tytso@mit.edu>
Fri, 3 Jan 2014 14:51:44 +0000
(09:51 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 5 Jan 2014 00:11:37 +0000
(19:11 -0500)
This happens if there is an error while scanning a directory for
config file fragments. This is rarely used, which is why we didn't
notice this.
Addresses-Coverity-Bug: #1138576
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/profile.c
patch
|
blob
|
history
diff --git
a/e2fsck/profile.c
b/e2fsck/profile.c
index
92aa893
..
9cfab37
100644
(file)
--- a/
e2fsck/profile.c
+++ b/
e2fsck/profile.c
@@
-320,6
+320,7
@@
profile_init(const char **files, profile_t *ret_profile)
for (fs = files; !PROFILE_LAST_FILESPEC(*fs); fs++) {
if (array)
free_list(array);
+ array = NULL;
retval = get_dirlist(*fs, &array);
if (retval == 0) {
if (!array)