OSDN Git Service
(root)
/
android-x86
/
external-e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79cc336
)
libblkid: Fix file descriptor leak when checking for a module
author
Theodore Ts'o
<tytso@mit.edu>
Sat, 11 Oct 2008 15:07:23 +0000
(11:07 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 13 Oct 2008 03:12:22 +0000
(23:12 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/probe.c
patch
|
blob
|
history
diff --git
a/lib/blkid/probe.c
b/lib/blkid/probe.c
index
71b00f4
..
a55bceb
100644
(file)
--- a/
lib/blkid/probe.c
+++ b/
lib/blkid/probe.c
@@
-233,8
+233,10
@@
static int check_for_modules(const char *fs_name)
if (!strcmp(t, ".ko"))
*t = 0;
}
- if (!strcmp(cp, fs_name))
+ if (!strcmp(cp, fs_name)) {
+ fclose(f);
return (1);
+ }
}
fclose(f);
#endif