Whamcloud - gitweb
LU-11899 utils: Possible resource/memory leaks
[fs/lustre-release.git] / lustre / utils / lfs_project.c
index 03de7d5..d61b038 100644 (file)
@@ -90,6 +90,7 @@ static int project_get_xattr(const char *pathname, struct fsxattr *fsx)
        if (ret) {
                fprintf(stderr, "%s: failed to get xattr for '%s': %s\n",
                        progname, pathname, strerror(errno));
+               close(fd);
                return -errno;
        }
        return fd;