Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-11899 utils: Possible resource/memory leaks
[fs/lustre-release.git]
/
lustre
/
utils
/
lfs_project.c
diff --git
a/lustre/utils/lfs_project.c
b/lustre/utils/lfs_project.c
index
03de7d5
..
d61b038
100644
(file)
--- a/
lustre/utils/lfs_project.c
+++ b/
lustre/utils/lfs_project.c
@@
-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;