Whamcloud - gitweb
mke2fs: fix resource leak on error path when creating inodes
authorTheodore Ts'o <tytso@mit.edu>
Thu, 11 Feb 2021 15:45:13 +0000 (10:45 -0500)
committerTheodore 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

index 194b06a..67bf94c 100644 (file)
@@ -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);