mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Patch from Dmitry V. Levin to fix a fd leak
This commit is contained in:
parent
a860bec167
commit
7b3edeb14d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user