diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-05-02 16:25:01 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-05-02 16:25:01 +0000 |
| commit | 48fe2b1386aa92c84fe9675b061eb6af9d86287d (patch) | |
| tree | a5451e4f15ed746128b844259cf99702dffebd40 | |
| parent | f4338e93c409636b907f7ea49cc087bf7d5ccb71 (diff) | |
| download | busybox-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
| -rw-r--r-- | libbb/loop.c | 1 |
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 | } |
