summaryrefslogtreecommitdiffstats
path: root/sys-utils/eject.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/eject.c')
-rw-r--r--sys-utils/eject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys-utils/eject.c b/sys-utils/eject.c
index aa45c181c..5aec0baa7 100644
--- a/sys-utils/eject.c
+++ b/sys-utils/eject.c
@@ -521,6 +521,7 @@ static int read_speed(const char *devname)
errx(EXIT_FAILURE,
_("%s: failed to read speed"),
_PATH_PROC_CDROMINFO);
+ fclose(f);
return atoi(str);
}
}