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:
abbc583
)
mke2fs: fix a file descriptor leak when creating a file system image file
author
Theodore Ts'o
<tytso@mit.edu>
Wed, 4 Aug 2021 03:54:06 +0000
(23:54 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 4 Aug 2021 03:54:06 +0000
(23:54 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c
patch
|
blob
|
history
diff --git
a/misc/mke2fs.c
b/misc/mke2fs.c
index
31e8de1
..
92003e1
100644
(file)
--- a/
misc/mke2fs.c
+++ b/
misc/mke2fs.c
@@
-2002,6
+2002,7
@@
profile_error:
} else {
dev_size = 0;
retval = 0;
+ close(fd);
printf(_("Creating regular file %s\n"), device_name);
}
}