aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 }