From 48fe2b1386aa92c84fe9675b061eb6af9d86287d Mon Sep 17 00:00:00 2001 From: andersen Date: Fri, 2 May 2003 16:25:01 +0000 Subject: Patch from Dmitry V. Levin to fix a fd leak git-svn-id: svn://busybox.net/trunk/busybox@6830 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/loop.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libbb') 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); } -- cgit v1.2.3-55-g6feb