aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-02 16:25:01 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-02 16:25:01 +0000
commit48fe2b1386aa92c84fe9675b061eb6af9d86287d (patch)
treea5451e4f15ed746128b844259cf99702dffebd40 /libbb
parentf4338e93c409636b907f7ea49cc087bf7d5ccb71 (diff)
downloadbusybox-w32-48fe2b1386aa92c84fe9675b061eb6af9d86287d.tar.gz
busybox-w32-48fe2b1386aa92c84fe9675b061eb6af9d86287d.tar.bz2
busybox-w32-48fe2b1386aa92c84fe9675b061eb6af9d86287d.zip
Patch from Dmitry V. Levin to fix a fd leak
git-svn-id: svn://busybox.net/trunk/busybox@6830 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/loop.c b/libbb/loop.c
index 29128abe4..aae083b4a 100644
--- a/libbb/loop.c
+++ b/libbb/loop.c
@@ -37,6 +37,7 @@ extern int del_loop(const char *device)
37 return (FALSE); 37 return (FALSE);
38 } 38 }
39 if (ioctl(fd, LOOP_CLR_FD, 0) < 0) { 39 if (ioctl(fd, LOOP_CLR_FD, 0) < 0) {
40 close(fd);
40 bb_perror_msg("ioctl: LOOP_CLR_FD"); 41 bb_perror_msg("ioctl: LOOP_CLR_FD");
41 return (FALSE); 42 return (FALSE);
42 } 43 }