commit | 7b3edeb14d46d25bc1bb8a732d951e6075e7e59c | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Fri May 02 16:25:01 2003 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Fri May 02 16:25:01 2003 +0000 |
tree | a5451e4f15ed746128b844259cf99702dffebd40 | |
parent | a860bec167faa960231b7f3c1ca55a49cda5a9d2 [diff] |
Patch from Dmitry V. Levin to fix a fd leak
diff --git a/libbb/loop.c b/libbb/loop.c index 29128ab..aae083b 100644 --- a/libbb/loop.c +++ b/libbb/loop.c
@@ -37,6 +37,7 @@ return (FALSE); } if (ioctl(fd, LOOP_CLR_FD, 0) < 0) { + close(fd); bb_perror_msg("ioctl: LOOP_CLR_FD"); return (FALSE); }