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:
bd36e7d
)
create_inode: fix potential file descriptor leak on an error path
author
Theodore Ts'o
<tytso@mit.edu>
Tue, 23 Feb 2021 17:56:01 +0000
(12:56 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 23 Feb 2021 17:56:01 +0000
(12:56 -0500)
Addresses-Coverity-Bug: 1473307
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/create_inode.c
patch
|
blob
|
history
diff --git
a/misc/create_inode.c
b/misc/create_inode.c
index
c6a79c3
..
54d8d34
100644
(file)
--- a/
misc/create_inode.c
+++ b/
misc/create_inode.c
@@
-650,7
+650,7
@@
errcode_t do_write_internal(ext2_filsys fs, ext2_ino_t cwd, const char *src,
if (retval) {
com_err(dest, retval, _("while looking up \"%s\""),
dest);
-
return retval
;
+
goto out
;
}
dest = cp+1;
} else