From 774e371261e54ced36c80addd09342f2d06344ed Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 11 Jan 2001 23:10:15 +0000 Subject: close some fd's --- mdk-stage1/probing.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mdk-stage1') diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index 7f3607c3d..9898d35f0 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -114,6 +114,8 @@ void probe_that_type(enum driver_type type) } } } + + fclose(f); } } @@ -194,6 +196,7 @@ static void find_media(void) buf[i-1] = '\0'; /* eat the \n */ tmp[count].model = strdup(buf); } + close(fd); log_message("IDE/%d: %s is a %s", tmp[count].type, tmp[count].name, tmp[count].model); tmp[count].bus = IDE; -- cgit v1.2.1