diff options
author | cperciva <cperciva@FreeBSD.org> | 2009-10-26 23:24:59 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2009-10-26 23:24:59 +0000 |
commit | 10cb9d698c9cbeb3f32887483e1276e9290e7e39 (patch) | |
tree | 49c26ae01bb7ac90a6852f67e7d74849b7c36da2 /usr.sbin/sysinstall | |
parent | f40ab6d4f201d0f924cc251ec20ee1e06d5c25a5 (diff) | |
download | FreeBSD-src-10cb9d698c9cbeb3f32887483e1276e9290e7e39.zip FreeBSD-src-10cb9d698c9cbeb3f32887483e1276e9290e7e39.tar.gz |
Don't leak a file descriptor when ejecting a CDROM.
Submitted by: Ronald Klop, trhodes
Note to self: don't do commits while half-asleep
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r-- | usr.sbin/sysinstall/cdrom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/cdrom.c b/usr.sbin/sysinstall/cdrom.c index 07a3722..6bc72d8 100644 --- a/usr.sbin/sysinstall/cdrom.c +++ b/usr.sbin/sysinstall/cdrom.c @@ -239,5 +239,6 @@ mediaEjectCDROM(Device *dev) else { ioctl(fd, CDIOCALLOW); ioctl(fd, CDIOCEJECT); + close(fd); } } |