summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/probing.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/probing.c')
-rw-r--r--mdk-stage1/probing.c3
1 files changed, 3 insertions, 0 deletions
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;