Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-05-02 20:25:01 +0400
committerEric Andersen <andersen@codepoet.org>2003-05-02 20:25:01 +0400
commit7b3edeb14d46d25bc1bb8a732d951e6075e7e59c (patch)
treea5451e4f15ed746128b844259cf99702dffebd40 /libbb/loop.c
parenta860bec167faa960231b7f3c1ca55a49cda5a9d2 (diff)
Patch from Dmitry V. Levin to fix a fd leak
Diffstat (limited to 'libbb/loop.c')
-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)
return (FALSE);
}
if (ioctl(fd, LOOP_CLR_FD, 0) < 0) {
+ close(fd);
bb_perror_msg("ioctl: LOOP_CLR_FD");
return (FALSE);
}