projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a860bec
)
Patch from Dmitry V. Levin to fix a fd leak
author
Eric Andersen
<andersen@codepoet.org>
Fri, 2 May 2003 16:25:01 +0000
(16:25 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 2 May 2003 16:25:01 +0000
(16:25 -0000)
libbb/loop.c
patch
|
blob
|
history
diff --git
a/libbb/loop.c
b/libbb/loop.c
index
29128ab
..
aae083b
100644
(file)
--- a/
libbb/loop.c
+++ b/
libbb/loop.c
@@
-37,6
+37,7
@@
extern int del_loop(const char *device)
return (FALSE);
}
if (ioctl(fd, LOOP_CLR_FD, 0) < 0) {
+ close(fd);
bb_perror_msg("ioctl: LOOP_CLR_FD");
return (FALSE);
}