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:
d3f7ef6
)
fsck: fix memory leak on an error exit
author
Theodore Ts'o
<tytso@mit.edu>
Thu, 25 Apr 2024 17:22:15 +0000
(13:22 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 25 Apr 2024 17:22:15 +0000
(13:22 -0400)
This reduces noise from a static analyzer.
https://github.com/tytso/e2fsprogs/issues/160
Signed-off-by: Theodore Ts'o <tytso@mit.
misc/fsck.c
patch
|
blob
|
history
diff --git
a/misc/fsck.c
b/misc/fsck.c
index
1769a10
..
64d0e7c
100644
(file)
--- a/
misc/fsck.c
+++ b/
misc/fsck.c
@@
-806,6
+806,7
@@
static void compile_fs_type(char *fs_type, struct fs_type_compile *cmp)
if ((negate && !cmp->negate) ||
(!negate && cmp->negate)) {
fputs(_(fs_type_syntax_error), stderr);
+ free(list);
exit(EXIT_USAGE);
}
}