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:
b79f56c
)
mke2fs: fix resource leak on error path when creating inodes
author
Theodore Ts'o
<tytso@mit.edu>
Thu, 11 Feb 2021 15:45:13 +0000
(10:45 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 11 Feb 2021 15:45:13 +0000
(10:45 -0500)
Addresses-Coverity-Bug: 1472856
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
194b06a
..
67bf94c
100644
(file)
--- a/
misc/create_inode.c
+++ b/
misc/create_inode.c
@@
-170,7
+170,7
@@
static errcode_t set_inode_xattr(ext2_filsys fs, ext2_ino_t ino,
if (retval) {
com_err(__func__, retval,
_("while reading xattrs for inode %u"), ino);
-
return retval
;
+
goto out
;
}
retval = ext2fs_get_mem(size, &list);