summaryrefslogtreecommitdiff
path: root/mount/lomount.c
diff options
context:
space:
mode:
authorLaMont Jones <lamont@debian.org>2007-11-26 20:48:14 -0700
committerLaMont Jones <lamont@debian.org>2007-11-26 20:48:14 -0700
commit811e6c250e91a32a30034fb653f2fabc5f4eaa2a (patch)
tree8aef22144331cdf242161ead57cd012b963b068c /mount/lomount.c
parent73e6ee9c444719765e190ba2944e86dc65a8c809 (diff)
parent7e5fad475258e0b77857011ebdccdcb045a4cd38 (diff)
downloadutil-linux-old-811e6c250e91a32a30034fb653f2fabc5f4eaa2a.tar.gz
Merge commit 'origin/master'
Diffstat (limited to 'mount/lomount.c')
-rw-r--r--mount/lomount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mount/lomount.c b/mount/lomount.c
index 74c6f680..c140c159 100644
--- a/mount/lomount.c
+++ b/mount/lomount.c
@@ -397,6 +397,7 @@ set_loop(const char *device, const char *file, unsigned long long offset,
}
if ((fd = open(device, mode)) < 0) {
perror (device);
+ close(ffd);
return 1;
}
*loopro = (mode == O_RDONLY);